You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.
When I create an article, without choosing an author, the save method tries to get_or_create it. A default dictionary that defines a name is passed to get_or_create, but due to django-parler, name is not an attribute of the Person model (it is in translations__name).
So I get the error FieldError: Invalid field name(s) for model Person: 'name'.
The text was updated successfully, but these errors were encountered:
On a fresh project with newsblog addon I'm not able to reproduce it. @adrien-delhorme could you please add more information such as a version of newsblog, django-cms, and django, and others which will help with reproducing it?
When I create an article, without choosing an author, the save method tries to
get_or_create
it. A default dictionary that defines aname
is passed toget_or_create
, but due to django-parler,name
is not an attribute of the Person model (it is intranslations__name
).So I get the error
FieldError: Invalid field name(s) for model Person: 'name'.
The text was updated successfully, but these errors were encountered: