day-cohort-70 / rare-api-rare-bear-team-4

rare-api-rare-bear-team-4 created by GitHub Classroom
0 stars 0 forks source link

Author Created Posts are initially Unapproved #24

Open stevebrownlee opened 5 months ago

stevebrownlee commented 5 months ago

As an admin I would like Posts written by non-admin users (a.k.a. "Authors") to be initially unapproved, so that authors are unable to publish any inappropriate Posts without oversight.

NOTE: If an admin writes a Post it should be automatically approved.

Sydney-M-Sharp commented 4 months ago

Technical note: For a user to be considered an admin, the is_staff property on the related Django User must be set to True. An efficient way to do this for the project is to create 2 user fixtures that you can use to seed your database. One user will be a regular author, and the other will be an admin.