mirror of https://github.com/snachodog/mybuddy.git
Change Admin list display ordering.
This commit is contained in:
parent
b4208f4cac
commit
2b062050fc
|
@ -14,11 +14,11 @@ class BabyAdmin(admin.ModelAdmin):
|
||||||
|
|
||||||
@admin.register(Feeding)
|
@admin.register(Feeding)
|
||||||
class FeedingAdmin(admin.ModelAdmin):
|
class FeedingAdmin(admin.ModelAdmin):
|
||||||
list_display = ('baby', 'start', 'end', 'duration', 'type', 'method',)
|
list_display = ('start', 'end', 'duration', 'baby', 'type', 'method',)
|
||||||
search_fields = ('baby__first_name', 'baby__last_name', 'type', 'method')
|
search_fields = ('baby__first_name', 'baby__last_name', 'type', 'method')
|
||||||
|
|
||||||
|
|
||||||
@admin.register(Sleep)
|
@admin.register(Sleep)
|
||||||
class SleepAdmin(admin.ModelAdmin):
|
class SleepAdmin(admin.ModelAdmin):
|
||||||
list_display = ('baby', 'start', 'end', 'duration',)
|
list_display = ('start', 'end', 'duration', 'baby',)
|
||||||
search_fields = ('baby__first_name', 'baby__last_name',)
|
search_fields = ('baby__first_name', 'baby__last_name',)
|
||||||
|
|
Loading…
Reference in New Issue