-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Description
We need to modify our existing invite-teacher-to-school flow to support pending user instances. Currently, we have a dedicated model that tracks user invitations and no user instance is created. Going forward, we should:
- update the teacher invitation model to have a foreign key to a user instance.
- update the user model to expose the 'school_invitations' property, which returns a queryset.
- update the user model to have the 'auto_generated' bool field, which is false when a user registers their self and true when a non-existent user is invited by someone else.
- update the various forms and views which handle managing teacher's school invitations.
- delete the user instance if the user rejects the invite and their user instance was auto-generated as a side effect of being invited to a school.
- verify a user's email address if they were auto-generated and accept an invite.
Want to work on this issue?
Code for Life welcomes and encourages community contributions!
If you would like to work on this issue, you can instruct @cfl-bot by commenting one of the following prompts:
| Prompt | Description | Arguments | Use When |
|---|---|---|---|
| assign me | Assigns you to this issue. | N/A | You want to work on this issue. |
| unassign me | Unassigns you from this issue. | N/A | You no longer want to work on this issue. |
| ready for review | Adds the ready for review label to this issue. | N/A | You've attached deliverables to this issue and you would like a CFL team member to review it. |
| requires changes | Removes the ready for review label from this issue. | N/A | You've realized that your deliverables are missing something. |
| link pr <number> <repo?> | Links a pull request to this issue. | <number> The number of the PR to link. <repo?> The repo the PR is in.* Defaults to this issue's repo. |
You want to associate your code changes with this issue. |
| unlink pr <number> <repo?> | Unlinks a pull request from this issue. | <number> The number of the PR to unlink. <repo?> The repo the PR is in.* Defaults to this issue's repo. |
You want to disassociate your code changes with this issue. |
*Only CFL repos may be specified. You can optionally omit the "codeforlife-" prefix.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status