nadineproject / nadine

Open Coworking Software
http://nadineproject.org
GNU Affero General Public License v3.0
163 stars 78 forks source link

Add user profile checks #455

Closed loleg closed 3 years ago

loleg commented 3 years ago

Checks have been introduced to migrations which invoke the User profile, which may not exist when the user is created with the setup or createsuperuser command. This PR fixes this error that comes up during initial migration on Python 3.9:

related_descriptors.py", line 421, in __get__
    raise self.RelatedObjectDoesNotExist(
__fake__.RelatedObjectDoesNotExist: User has no profile.

Additionally - and please let me know if you would prefer a separate PR - this bumps minor versions of the following packages:

The text-unidecode package has been automatically renamed as unidecode.

loleg commented 3 years ago

It looks like a few other issues come up in the interface then my user has no profile. How could we also (on top of installation issues) ensure that the admin user gets a profile created?

jsayles commented 3 years ago

Thank you @loleg for this update. Sorry it took me 16 days to respond. I rarely get to fixing setup issues as I am already set up and don't run into them.

loleg commented 3 years ago

No probs!! Hope you're having a great weekend.