shoorick / slide-django

1 stars 0 forks source link

Empty profile name when user is just created #2

Closed shoorick closed 3 years ago

shoorick commented 3 years ago

New user created by ./manage.py createsuperuser has no first and last names. As a result profile of such user cannot be edited via web interface at /admin/slide/profile/

image

Link to profile editing are present but has size 0×0:

image

How to fix

Change Profile.__str__ method: it must return username when other names are empty.