~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to wiki/models.py

  • Committer: franku
  • Date: 2019-04-11 15:20:33 UTC
  • mto: This revision was merged to the branch mainline in revision 540.
  • Revision ID: somal@arcor.de-20190411152033-wtpkgd783vnv2j4b
replaced renamed functions and __unicode__ with __str__

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
        changeset = self.changeset_set.get(revision=to_revision)
117
117
        return changeset.compare_to(from_revision)
118
118
 
119
 
    def __unicode__(self):
 
119
    def __str__(self):
120
120
        return self.title
121
121
 
122
122
 
163
163
        ordering = ('-revision',)
164
164
        app_label = 'wiki'
165
165
 
166
 
    def __unicode__(self):
 
166
    def __str__(self):
167
167
        return '#%s' % self.revision
168
168
 
169
169
    def get_absolute_url(self):