2i2c-org / unnamed-thingity-thing

https://2i2c.org/unnamed-thingity-thing/
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Document the `promote` management command #3

Closed yuvipanda closed 1 month ago

yuvipanda commented 1 month ago

Since the django admin user is available only to django 'superusers', and we use GitHub external login for everything, we had to make a separate command (https://github.com/2i2c-org/unnamed-thingity-thing/blob/main/comptest/web/management/commands/promote.py) that can promote an existing user (created via github login) into a superuser.

This task is to validate that it works, and to document it as part of CONTRIBUTING.md, as a lot of 'definitions of done' will rely on the admin panel.

- [x] Test that running the management command `promote` against an existing user works
- [x] Document this as a precursor to accessing the admin interface

Definition of done