Fixed #27111 -- Fixed KeyError if USERNAME_FIELD isn't in UserCreationForm.fields.

This commit is contained in:
Berker Peksag 2016-08-24 20:20:12 +03:00 committed by Tim Graham
parent 9aaeec337e
commit 3c18f8a3d2
3 changed files with 22 additions and 2 deletions

View file

@ -76,3 +76,6 @@ Bugfixes
* Included the already applied migration state changes in the ``Apps`` instance
provided to the ``pre_migrate`` signal receivers to allow ``ContentType``
renaming to be performed on model rename (:ticket:`27100`).
* Reallowed subclassing ``UserCreationForm`` without ``USERNAME_FIELD`` in
``Meta.fields`` (:ticket:`27111`).