make gallery raw_id
This commit is contained in:
parent
d962f16c72
commit
5773709542
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ class ContentAdmin(admin.ModelAdmin):
|
||||||
list_display = ('id', '__str__', 'datestart', 'shortname', 'type')
|
list_display = ('id', '__str__', 'datestart', 'shortname', 'type')
|
||||||
list_filter = ['datestart', 'type']
|
list_filter = ['datestart', 'type']
|
||||||
search_fields = ['title', 'body', 'header', 'shortname']
|
search_fields = ['title', 'body', 'header', 'shortname']
|
||||||
raw_id_fields = ['photo']
|
raw_id_fields = ['photo', 'gallery']
|
||||||
inlines = [FileInline, LinkInline]
|
inlines = [FileInline, LinkInline]
|
||||||
formfield_overrides = {
|
formfield_overrides = {
|
||||||
models.TextField: {'widget': MaxLengthAdminMarkdownxWidget},
|
models.TextField: {'widget': MaxLengthAdminMarkdownxWidget},
|
||||||
|
|
Loading…
Add table
Reference in a new issue