~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to wlmaps/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:
44
44
    def get_absolute_url(self):
45
45
        return reverse('wlmaps_view', kwargs={'map_slug': self.slug})
46
46
 
47
 
    def __unicode__(self):
 
47
    def __str__(self):
48
48
        return '%s by %s' % (self.name, self.author)
49
49
 
50
50
    def save(self, *args, **kwargs):