We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3202fd commit 175fdf5Copy full SHA for 175fdf5
1 file changed
api/views.py
@@ -151,7 +151,7 @@ def pre_save(self, obj):
151
obj.set_password(obj.password)
152
# FIXME: move this business logic to the model
153
if len(obj.username) < 4:
154
- raise UserRegistrationException('username must be > 4 characters in length')
+ raise UserRegistrationException('username must be >= 4 characters in length')
155
# Make this first signup an admin / superuser
156
if not User.objects.filter(is_superuser=True).exists():
157
obj.is_superuser = obj.is_staff = True
0 commit comments