~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to news/models.py

  • Committer: franku
  • Date: 2019-04-11 15:06:09 UTC
  • mto: This revision was merged to the branch mainline in revision 540.
  • Revision ID: somal@arcor.de-20190411150609-801l72ffxgr6gkui
converted to python 3.6 using 2to3 script

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        ordering = ('title',)
31
31
 
32
32
    def __unicode__(self):
33
 
        return u'%s' % self.title
 
33
        return '%s' % self.title
34
34
 
35
35
    def get_absolute_url(self):
36
36
        return reverse('category_posts', args=(self.slug,))
66
66
        get_latest_by = 'publish'
67
67
 
68
68
    def __unicode__(self):
69
 
        return u'%s' % self.title
 
69
        return '%s' % self.title
70
70
 
71
71
    #########
72
72
    # IMAGE #