Skip to content

Commit 22df4f4

Browse files
Jaap Roesberkerpeksag
Jaap Roes
authored andcommitted
Fix comment about the creator field
The creator ForeignKey sets blank=True, so the comment isn't correct.
1 parent f10cd3c commit 22df4f4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cms/models.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ class ContentManageable(models.Model):
2222

2323
# We allow creator to be null=True so that we can, if we must, create a
2424
# ContentManageable object in a context where we don't have a creator (i.e.
25-
# where there isn't a request.user sitting around). However, we still leave
26-
# it blank=False so that any time we try to *validate* a ContentManageable
27-
# object we'll get an error. This is a reasonable compromise that lets us
28-
# track creators fairly well without necessarily over-enforcing it in places
29-
# where it'd be invasive.
25+
# where there isn't a request.user sitting around).
3026
creator = models.ForeignKey(
3127
settings.AUTH_USER_MODEL,
3228
related_name='%(app_label)s_%(class)s_creator',

0 commit comments

Comments
 (0)