Commits

Ed Brannin committed 614d612

Tweaked the admin screen field order & classes.

  • Participants
  • Parent commits 7895f88

Comments (0)

Files changed (1)

File baptism_records/baptism/admin.py

 
 class ChristianAdmin(admin.ModelAdmin):
     fieldsets = [
+        ("Book Entry", {'fields': ["book", 'page', 'number'],
+                        'classes': ['book_info']}),
+        ("Book Entry 2", {'fields': ["book2", 'page2', 'number2'], 
+                        'classes': ['book_info', 'collapse']}),
         ('Family', {'fields': ["first_name", "middle_name", "last_name", 
                                 "father_name", "mother_maiden_name", 
                                 "sponsor1", "sponsor2",
-                                "baptism_date", "birth_date", "birth_hospital"]}),
-        ("Church", {'fields': ["baptism_church", "baptizer", "zip_code"]}),
+                                "baptism_date", "birth_date", "birth_hospital"],
+                    'classes': ['family_info']}),
+        ("Church", {'fields': ["baptism_church", "baptizer", "zip_code"],
+                    'classes': ['church_info']}),
         ("Confirmation", {'fields': ["confirmer", "confirmation_date", 
-                                    "confirmation_place"]}),
-        ("Book Entry", {'fields': ["book", 'page', 'number']}),
-        ("Book Entry 2", {'fields': ["book2", 'page2', 'number2'], 
-                        'classes': ['collapse']}),
+                                    "confirmation_place"],
+                            'classes': ['confirmation_info']}),
     ]
     search_fields = ['first_name', 'last_name', 'father_name', 'mother_maiden_name']
     list_display = ['full_name', 'last_name', 'baptism_date', 'book', 'page', 'number']