|
|
@ -11,6 +11,12 @@ for model in models:
|
|
|
|
admin.site.register(model)
|
|
|
|
admin.site.register(model)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class OrganizationImageInline(admin.TabularInline):
|
|
|
|
|
|
|
|
model = OrganizationImage
|
|
|
|
|
|
|
|
readonly_fields = ['id']
|
|
|
|
|
|
|
|
extra = 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@admin.register(Organization)
|
|
|
|
@admin.register(Organization)
|
|
|
|
class OrganizationAdmin(admin.ModelAdmin):
|
|
|
|
class OrganizationAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ['name', 'category', 'phone', 'website']
|
|
|
|
list_display = ['name', 'category', 'phone', 'website']
|
|
|
|