Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

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

Closed
adrien-delhorme opened this issue Feb 19, 2019 · 1 comment
Closed

Comments

@adrien-delhorme
Copy link

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
Copy link

bplociennik commented Feb 20, 2019

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants