Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Add proposed status to study groups - #8

Open
armooo wants to merge 3 commits into
BostonPython:masterfrom
armooo:proposed
Open

Add proposed status to study groups#8
armooo wants to merge 3 commits into
BostonPython:masterfrom
armooo:proposed

Conversation

@armooo

Copy link
Copy Markdown
Contributor

This changes adds a StudyGroupStatus model and a FK from StudyGroup. It also hides StudyGroups in the proposed status from normal users.

We don't have a DB migration system setup so you need to drop and recreate the database to pick up the schema changes.

Add statueses to groups and default new groups to have the status of
proposed.
Do not list proposed groups to non-admins. Also respond with a 404 to
groups that are proposed to non-admins.
@armooo

Copy link
Copy Markdown
ContributorAuthor

I am going to rebase this on the migration branch and add a migration.

@nedbat

Copy link
Copy Markdown
Member

I don't understand why we need a new table. Surely a status column on the group table would be enough?

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@armooo@nedbat