divio / aldryn-newsblog

A combined news/weblog application for Aldryn and django CMS – part of the Essential Addons.
https://marketplace.django-cms.org/en/addons/browse/aldryn-newsblog/
Other
67 stars 118 forks source link

FieldError: Invalid field name(s) for model Person: 'name'. #520

Closed adrien-delhorme closed 5 years ago

adrien-delhorme commented 5 years ago

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'.

bplociennik commented 5 years ago

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?