Loading of backup fails due to nullable natural_key
: the USERNAME_FIELD
#2247
Labels
[C] Backend
Focuses on backend implementation
[P] Major
Major priority
[T] Bug
This is a bug. We don't like it. Please get rid of it.
Milestone
Loading a larger backup which contains multiple users with their email
None
fails with a unique constraint failure.This should be reproduced by expanding the testdata accordingly and fixed by replacing the default natural key with
(self.pk,settings.USERNAME_FIELD)
The text was updated successfully, but these errors were encountered: