Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add blog entry due to status field with django-jet #535

Open
3 tasks done
ZAZA316 opened this issue Mar 30, 2018 · 3 comments
Open
3 tasks done

Unable to add blog entry due to status field with django-jet #535

ZAZA316 opened this issue Mar 30, 2018 · 3 comments

Comments

@ZAZA316
Copy link

ZAZA316 commented Mar 30, 2018

Actual behavior

When using zinnia with django-jet, the blog entry model cannot be saved due to "status" field.
And "sites" field(ManyToManyField) also not work well.

Expected behavior

The blog entry model have to be saved successfully.

Steps to reproduce the issue

  1. install django-jet
  2. install django-blog-zinnia
  3. go to admin page and add entry

Specifications

  • Zinnia version: 0.19
  • django-jet version: 1.0.7
  • Django version: 2.02
  • Python version: 3.6.2
  • Operating system: Windows 10, Ubuntu16.04

Disclaimer

Before submitting an issue make sure you have:

  • Read the guidelines for contributing.
  • Checked for duplicate issues.
  • Not a support request.
@ZAZA316
Copy link
Author

ZAZA316 commented Mar 30, 2018

zinnia

This is issue image.

@Wtower
Copy link

Wtower commented Apr 7, 2018

Confirming issue and subscribing.

@ZAZA316
Copy link
Author

ZAZA316 commented Apr 7, 2018

I fixed it with overriding the EntryAdmin class to disable the form attribute set to EntryAdminForm.

from zinnia.admin.entry import EntryAdmin
class EntryAdminEx(EntryAdmin):
form = forms.ModelForm

Wtower added a commit to Wtower/django-blog-zinnia that referenced this issue Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants