Skip to content

Commit d46ff22

Browse files
committed
Fix username error
1 parent 8874e00 commit d46ff22

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

appointment/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
__package_name__ = "django-appointment"
66
__url__ = "https://github.com/adamspd/django-appointment"
77
__package_website__ = "https://django-appt.adamspierredavid.com/"
8-
__version__ = "3.3.7"
8+
__version__ = "3.3.8"
99
__test_version__ = False

appointment/utils/db_helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ def create_new_user(client_data: dict):
278278
CLIENT_MODEL._meta.get_field('username')
279279
user = create_user_with_username(client_data)
280280
except FieldDoesNotExist:
281+
client_data.pop('username', None)
281282
user = create_user_with_email(client_data)
282283
return user
283284

0 commit comments

Comments
 (0)