Change Admin list display ordering.

This commit is contained in:
Christopher Charbonneau Wells 2017-08-13 12:51:01 -04:00
parent b4208f4cac
commit 2b062050fc
1 changed files with 2 additions and 2 deletions

View File

@ -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',)