~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to wlprofile/models.py

  • Committer: franku
  • Date: 2019-05-12 19:10:05 UTC
  • mfrom: (534.1.4 usr_posts)
  • Revision ID: somal@arcor.de-20190512191005-cym9ku6scqhd3ndr
added a view to show all posts of a specific user

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
        to not be always calculated.
63
63
 
64
64
        """
65
 
        return Post.objects.filter(user=self.user).count()
 
65
        return Post.objects.public().filter(user=self.user).count()
66
66
 
67
67
    def user_status(self):
68
68
        nump = self.post_count()