[Fix] Registering Issue (#125)

Co-authored-by: Tim Lorsbach <tim@lorsba.ch>
Reviewed-on: enviPath/enviPy#125
This commit is contained in:
2025-09-19 01:17:03 +12:00
parent f03ade0e94
commit b3079834c1
6 changed files with 152 additions and 65 deletions

View File

@ -164,7 +164,7 @@ class UserManager(object):
if 'uuid' in kwargs:
extra_fields['uuid'] = kwargs['uuid']
u = get_user_model().objects.create_user(username, email, password, **kwargs)
u = get_user_model().objects.create_user(username, email, password, **extra_fields)
# Create package
package_name = f"{u.username}{'' if u.username[-1] in 'sxzß' else 's'} Package"