This repository was archived by the owner on Mar 24, 2019. It is now read-only.
Commit 6653f01
committed
Make some fields on Speaker model optional.
This makes it easier to add/edit Speakers in the admin.
- Make User relationship optional (since some Speakers will not have a
User account associated with them if they are additional speakers to
a proposal) by setting blank=True.
- Make annotation field optional (similar to the field on the Sponsor
model).
- Make invite_email and invite_token fields optional by setting
blank=True, since conventional Speakers attached to User accounts do
not need these fields. This removes the uniqueness constraint from
invite_token, but since null=True was set on that field (see
https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.Field.null),
it wasn't really unique anyway.
Note that this commit differs from the one in
pinax#155 in that the associated
migration is #4, not #3. This prevents migration conflicts within this
branch, but does not apply cleanly to master by itself.1 parent d01489f commit 6653f01
2 files changed
Lines changed: 47 additions & 4 deletions
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments