11 lines
325 B
Python
11 lines
325 B
Python
from django.contrib import admin
|
|
from .models import UserProfile as UserProfileModel
|
|
|
|
|
|
# Register your models here.
|
|
@admin.register(UserProfileModel)
|
|
class UserProfileAdmin(admin.ModelAdmin):
|
|
list_display = ['cuser', 'city',]
|
|
search_fields = ['cuser__name_family', 'city__name',]
|
|
list_filter = ['city__is_ostan']
|