Closed spetrovi closed 9 months ago
Have basic admin views now, although we still need to correctly implement the admin decorator, so only logged in admin user can view the url.
Also, it would probably be better if we go through the models to kind of standardise their fields and methods, so that every class have id and add() delete() not user_id, delete_user(), delete_songbook(), etc...
Added manage.py with createsuperuser. User model now has bool field is_admin The admin_login_required decorator uses is_authenticated first and then checks the database for is_admin field associated with that user_id.
Try implementing some basic admin page that would allow us to manage the insides of the database
I.e. Create/Delete/Edit Users custom Songbooks/Entries