Fix article admin field position unknown
This commit is contained in:
parent
78603c5afc
commit
908eac134e
1 changed files with 1 additions and 1 deletions
|
@ -99,6 +99,6 @@ class PageAdmin(ArticleAdmin):
|
||||||
list_display = ["position"] + ArticleAdmin.list_display
|
list_display = ["position"] + ArticleAdmin.list_display
|
||||||
|
|
||||||
def get_fieldsets(self, request, obj=None):
|
def get_fieldsets(self, request, obj=None):
|
||||||
article_fieldsets = ArticleAdmin.fieldsets
|
article_fieldsets = copy.deepcopy(ArticleAdmin.fieldsets)
|
||||||
article_fieldsets[0][1]["fields"][0] = ("title", "slug", "position")
|
article_fieldsets[0][1]["fields"][0] = ("title", "slug", "position")
|
||||||
return article_fieldsets
|
return article_fieldsets
|
||||||
|
|
Reference in a new issue