Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian New Member Process
nm.debian.org
Commits
0e49a0ba
Commit
0e49a0ba
authored
Mar 13, 2012
by
Enrico Zini
Browse files
Allow blank managers in admin
parent
0aae16f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/models.py
View file @
0e49a0ba
...
...
@@ -305,7 +305,7 @@ class Process(models.Model):
choices
=
[
x
[
1
:
3
]
for
x
in
const
.
ALL_PROGRESS
])
# This is NULL until one gets a manager
manager
=
models
.
ForeignKey
(
AM
,
related_name
=
"processed"
,
null
=
True
)
manager
=
models
.
ForeignKey
(
AM
,
related_name
=
"processed"
,
null
=
True
,
blank
=
True
)
# 1.3-only: manager = models.ForeignKey(AM, related_name="processed", null=True, on_delete=models.PROTECT)
advocates
=
models
.
ManyToManyField
(
Person
,
related_name
=
"advocated"
,
blank
=
True
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment