hotosm / website

Other
2 stars 0 forks source link

Creating a custom user model for extensibility #3

Closed katporks closed 1 year ago

katporks commented 1 year ago

This pull request focuses on future-proofing the user model by extending the default base class. Implementing this enhancement in the future could pose complexity in terms of migrations, especially once the staging and production schema is established. Anticipating the extension now makes migrations less intricate for future modifications or additions of fields.

The default Wagtail User model includes the following fields:

Users can assume one of the following roles:

Feel free to suggest any fields for modification or addition!

Additionally, this pull request enables running pytest in a local setup.