mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed E221 pep8 warnings.
This commit is contained in:
parent
0d0f4f020a
commit
1597503a01
30 changed files with 94 additions and 90 deletions
|
@ -147,8 +147,8 @@ class Comment(models.Model):
|
|||
comment = models.TextField()
|
||||
|
||||
# Content-object field
|
||||
content_type = models.ForeignKey(ContentType)
|
||||
object_pk = models.TextField()
|
||||
content_type = models.ForeignKey(ContentType)
|
||||
object_pk = models.TextField()
|
||||
content_object = generic.GenericForeignKey(ct_field="content_type", fk_field="object_pk")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue