|
|
|
@ -54,10 +54,16 @@ class LicenseAdmin(admin.ModelAdmin): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class UserProfileAdmin(admin.ModelAdmin): |
|
|
|
class UserProfileAdmin(admin.ModelAdmin): |
|
|
|
|
|
|
|
search_fields = ('inn', 'email_admin', 'name') |
|
|
|
list_display = ('email_admin', 'profile_type', 'name', 'inn', 'active') |
|
|
|
list_display = ('email_admin', 'profile_type', 'name', 'inn', 'active') |
|
|
|
list_display_links = list_display |
|
|
|
list_display_links = list_display |
|
|
|
form = forms.UserProfileAdminForm |
|
|
|
form = forms.UserProfileAdminForm |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
list_filter = ( |
|
|
|
|
|
|
|
'profile_type', |
|
|
|
|
|
|
|
'active' |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
def email_admin(self, obj): |
|
|
|
def email_admin(self, obj): |
|
|
|
return obj.get_email() |
|
|
|
return obj.get_email() |
|
|
|
|
|
|
|
|
|
|
|
|