setter for user DUMMY_FIELDS
not available for django get_or_create()
#12700
Labels
enhancement
Adding or requesting a new feature.
good first issue
Opportunity for newcoming contributors.
hacktoberfest
This is suitable for Hacktoberfest. Don’t try to spam.
help wanted
Extra attention is needed.
Describe the issue
The setter method used for the
DUMMY_FIELDS
forfirst_name
andlast_name
in theweblate.auth.models.User
is not working with thedjango
internalget_or_create()
defaults
parameter.A
FieldError
exception is raised if one of those fields is provides asdefaults
.I already tried
Steps to reproduce the behavior
This can be reproduced in a simple django python shell (
python src/manage.py shell
):Expected behavior
A user is created and the
full_name
is set toTest
Screenshots
No response
Exception traceback
How do you run Weblate?
Other
Weblate versions
Weblate deploy checks
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: