parent
1752dff9b4
commit
77961345a8
@ -1,3 +1,17 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import Category, Location, Organization, OrganizationImage, Region
|
||||
|
||||
# Register your models here.
|
||||
|
||||
|
||||
models = [Category, Location, OrganizationImage, Region]
|
||||
|
||||
for model in models:
|
||||
admin.site.register(model)
|
||||
|
||||
|
||||
@admin.register(Organization)
|
||||
class OrganizationAdmin(admin.ModelAdmin):
|
||||
list_display = ['name', 'category', 'phone', 'website']
|
||||
inlines = [OrganizationImage]
|
||||
|
Loading…
Reference in new issue