register and sign in pages

This commit is contained in:
2026-09-22 00:50:30 +05:00
parent f313867653
commit 78d04f75d1
96 changed files with 6383 additions and 109 deletions
+22
View File
@@ -0,0 +1,22 @@
from django.contrib import admin
from .models import Atoll, Island
class IslandInline(admin.TabularInline):
model = Island
extra = 0
@admin.register(Atoll)
class AtollAdmin(admin.ModelAdmin):
list_display = ["name", "code", "is_active"]
search_fields = ["name", "code"]
inlines = [IslandInline]
@admin.register(Island)
class IslandAdmin(admin.ModelAdmin):
list_display = ["name", "atoll", "is_active"]
list_filter = ["atoll", "is_active"]
search_fields = ["name"]