# -*- coding: utf-8 -*-
from django.contrib import admin

from .models import Member


class MemberAdmin(admin.ModelAdmin):
    list_display = (
        'email', 'api_key', 'is_active', 'date_joined', 'last_login', 'is_staff', )
    list_filter = ('is_active', 'is_staff', 'date_joined', 'last_login', )
    search_fields = ('id', 'email', )
    actions = ['resend_registration']

    def resend_registration(self, request, queryset):
        for member in queryset.all():
            member.send_registration_confirmation(reset_key=True)

admin.site.register(Member, MemberAdmin)

@@ -78,16 +78,133 @@
  Member%0A
+from ..storage.models import Package%0A%0A%0Aclass PackageInline(admin.TabularInline):%0A    model = Package%0A    max_num = 1%0A
 %0A%0Aclass 
@@ -489,16 +489,124 @@
 ration'%5D
+%0A    actions_on_bottom = True%0A    exclude = ('groups', 'user_permissions', )%0A    inlines = %5BPackageInline, %5D
 %0A%0A    de

Clean admin for Members