Skip to content

Commit 175fdf5

Browse files
author
Matthew Fisher
committed
typo: must be >= 4
1 parent b3202fd commit 175fdf5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def pre_save(self, obj):
151151
obj.set_password(obj.password)
152152
# FIXME: move this business logic to the model
153153
if len(obj.username) < 4:
154-
raise UserRegistrationException('username must be > 4 characters in length')
154+
raise UserRegistrationException('username must be >= 4 characters in length')
155155
# Make this first signup an admin / superuser
156156
if not User.objects.filter(is_superuser=True).exists():
157157
obj.is_superuser = obj.is_staff = True

0 commit comments

Comments
 (0)