update admin add list_filter
This commit is contained in:
parent
775104717b
commit
d2aa43ac65
@ -32,12 +32,14 @@ class LocationAdmin(admin.ModelAdmin):
|
|||||||
@admin.register(Client)
|
@admin.register(Client)
|
||||||
class ClientAdmin(admin.ModelAdmin):
|
class ClientAdmin(admin.ModelAdmin):
|
||||||
list_display = ('uuid', 'location', 'report_user', 'last_seen')
|
list_display = ('uuid', 'location', 'report_user', 'last_seen')
|
||||||
|
list_filter = ('location', 'report_user')
|
||||||
fields = ['location', 'uuid', 'report_user', 'last_seen']
|
fields = ['location', 'uuid', 'report_user', 'last_seen']
|
||||||
|
|
||||||
|
|
||||||
@admin.register(ClientData)
|
@admin.register(ClientData)
|
||||||
class ClientDataAdmin(admin.ModelAdmin):
|
class ClientDataAdmin(admin.ModelAdmin):
|
||||||
list_display = ('uuid', 'last_seen')
|
list_display = ('uuid', 'last_seen')
|
||||||
|
list_filter = ('uuid', 'last_seen')
|
||||||
fields = ['location', 'last_seen']
|
fields = ['location', 'last_seen']
|
||||||
|
|
||||||
|
|
||||||
@ -78,6 +80,7 @@ class DeskAdminForm(forms.ModelForm):
|
|||||||
class DeskAdmin(admin.ModelAdmin):
|
class DeskAdmin(admin.ModelAdmin):
|
||||||
form = DeskAdminForm
|
form = DeskAdminForm
|
||||||
list_display = ('client', 'desk_no', 'name', 'enabled', 'prize', 'prize_hh')
|
list_display = ('client', 'desk_no', 'name', 'enabled', 'prize', 'prize_hh')
|
||||||
|
list_filter = ('client', 'desk_no', 'enabled', 'prize', 'prize_hh')
|
||||||
|
|
||||||
|
|
||||||
@admin.register(Accounting)
|
@admin.register(Accounting)
|
||||||
|
Loading…
Reference in New Issue
Block a user