~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to wlprofile/models.py

  • Committer: franku
  • Date: 2019-03-04 17:47:12 UTC
  • mfrom: (521 widelands)
  • mto: This revision was merged to the branch mainline in revision 523.
  • Revision ID: somal@arcor.de-20190304174712-rlkrxc939fmcveuo
merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        verbose_name = _('Profile')
55
55
        verbose_name_plural = _('Profiles')
56
56
 
57
 
    def unread_pm_count(self):
58
 
        return PrivateMessage.objects.filter(dst_user=self, read=False).count()
59
 
 
60
57
    def post_count(self):
61
58
        """Return the nr of posts the user has.
62
59