We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f10cd3c commit 22df4f4Copy full SHA for 22df4f4
cms/models.py
@@ -22,11 +22,7 @@ class ContentManageable(models.Model):
22
23
# We allow creator to be null=True so that we can, if we must, create a
24
# 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.
+ # where there isn't a request.user sitting around).
30
creator = models.ForeignKey(
31
settings.AUTH_USER_MODEL,
32
related_name='%(app_label)s_%(class)s_creator',
0 commit comments