Commits

Ed Brannin  committed 5aec376

Grouped the Christian page into fieldsets.

  • Participants
  • Parent commits c654a7e

Comments (0)

Files changed (1)

File baptism_records/baptism/admin.py

 from baptism_records.baptism.models import *
 from django.contrib import admin
 
+class ChristianAdmin(admin.ModelAdmin):
+    fieldsets = [
+        ('Family', {'fields': ["baptism_name", "middle_name", "father_name",
+                                "mother_maiden_name", "sponsor1", "sponsor2",
+                                "baptism_date", "birth_date", "birth_hospital"]}),
+        ("Church", {'fields': ["baptism_church", "baptizer", "zip_code"]}),
+        ("Confirmation", {'fields': ["confirmer", "confirmation_date", 
+                                    "confirmation_place"]}),
+        ("Book Entry", {'fields': ["book", 'page', 'number']}),
+        ("Book Entry 2", {'fields': ["book2", 'page2', 'number2']}),
+    ]
+
 admin.site.register(Minister)
 admin.site.register(ZipCode)
 admin.site.register(Church)
-admin.site.register(Christian)
+admin.site.register(Christian, ChristianAdmin)
 admin.site.register(Note)