fix member missing error

This commit is contained in:
2020-09-02 19:35:55 +00:00
parent 099cb8a987
commit cdba99b038
2 changed files with 5 additions and 4 deletions

View File

@@ -193,7 +193,8 @@ class Post(models.Model):
@property
def author_member(self):
return (Member.all_members.get(nickname=self.author.username))
return Member.all_members.filter(nickname=self.author.username).first()
def save(self, *args, **kwargs):
"save the post with some defaults"