Closed pacahon closed 4 years ago
I don't understand what's wrong with travis and how to debug it. Locally isort doesn't complain about anything in the default_backend.py. make lint
also works fine.
thanks!
@joshblum travis build is still failing. Is it possible to output some debug info behind make lint
command? Then I could fix an error. Locally I tested imports order with the same isort version (4.3.21)
adding the --verbose
flag to the call to isort might help:
https://github.com/macropin/django-registration/blob/master/tasks.py#L30
-vb, --verbose Shows verbose output, such as when files are skipped
or when a check is successful.
I'm still confused.
SUCCESS: /Users/pacahon/PycharmProjects/django-registration/registration/tests/default_backend.py Everything Looks Good!
was this on CI?
Default registration form based on django.contrib.auth.forms.UserCreationForm which saves active user to db. This PR prevents it and moves user saving to registration.models.RegistrationManager.create_inactive_user.
It is up to the developer to maintain this behavior in case of a custom registering form. Especially when custom form omit the save method since the default UserModel().objects.create_user implementation also saves user to db.