Skip to content

Commit

Permalink
Nesprávne generické relácie
Browse files Browse the repository at this point in the history
  • Loading branch information
mireq committed Jan 26, 2019
1 parent 3cf3601 commit f5160d1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions blog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ class Blog(TimestampModelMixin, models.Model):
filtered_sidebar = RichTextFilteredField(
)

ratings = GenericRelation('rating.Rating')

content_fields = ('original_descriptoin', 'original_sidebar',)

def get_absolute_url(self):
Expand Down Expand Up @@ -142,7 +140,6 @@ class Post(TimestampModelMixin, models.Model):
comments_header = GenericRelation('comments.RootHeader')
comments = GenericRelation('comments.Comment')
attachments = GenericRelation('attachment.Attachment')
ratings = GenericRelation('rating.Rating')
hit = HitCountField()

content_fields = ('original_perex', 'original_content',)
Expand Down
1 change: 0 additions & 1 deletion comments/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ class Comment(MPTTModel, TimestampModelMixin):

attachments = GenericRelation('attachment.Attachment')
notes = GenericRelation('notes.Note')
ratings = GenericRelation('rating.Rating')

content_fields = ('original_comment',)

Expand Down
1 change: 0 additions & 1 deletion forum/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ class Topic(TimestampModelMixin, models.Model):
comments = GenericRelation('comments.Comment')
attachments = GenericRelation('attachment.Attachment')
notes = GenericRelation('notes.Note')
ratings = GenericRelation("rating.Rating")

is_removed = models.BooleanField("vymazané", default=False)
is_resolved = models.BooleanField("vyriešené", default=False)
Expand Down

0 comments on commit f5160d1

Please sign in to comment.