Skip to content

Commit

Permalink
fix: Fixed forum generator
Browse files Browse the repository at this point in the history
  • Loading branch information
mireq committed Apr 29, 2023
1 parent ac73f12 commit db2da37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions forum/generators.py
Expand Up @@ -26,8 +26,8 @@ class Meta:
fields = ('created', 'updated')
unique_checks = (('title',),)

def get_object(self):
obj = super(TopicGenerator, self).get_object()
def build_instance(self):
obj = super().build_instance()
obj.filtered_text = obj.original_text
obj.updated = obj.created
return obj
Expand Down

0 comments on commit db2da37

Please sign in to comment.