Zemogle
Zemogle

Reputation: 614

Change Page owner in Wagtail admin

We have a Wagtail site where various people contribute to a news item before its published and the person who creates the page is not necessarily the main author. I'm looking for way to edit the Page.owner in the Wagtail admin.

In the model class I've added:

content_panels = Page.content_panels + [
       ...
       FieldPanel('owner')
    ]

Which shows all the site's users in a dropdown but this doesn't get saved. I was wondering if there was a more 'Wagtail' way of doing this, aside from overriding the save() definition.

Upvotes: 4

Views: 580

Answers (1)

Redjam
Redjam

Reputation: 534

I did exactly the same thing as you did and the owner is saved without problems.

From what you wrote, it's difficult to understand why it's not saved.

Please don't hesitate to share more inputs.

Upvotes: 2

Related Questions