~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to wlhelp/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:
13
13
        ordering = ['name']
14
14
 
15
15
 
16
 
    def __unicode__(self):
 
16
    def __str__(self):
17
17
        return '%s' % self.name
18
18
 
19
19
 
38
38
        ordering = ['name']
39
39
 
40
40
 
41
 
    def __unicode__(self):
 
41
    def __str__(self):
42
42
        return '%s' % self.name
43
43
 
44
44
 
59
59
        ordering = ['name']
60
60
 
61
61
 
62
 
    def __unicode__(self):
 
62
    def __str__(self):
63
63
        return '%s' % self.name
64
64
 
65
65
 
203
203
        for c, w in zip(count, self.store_wares.all()):
204
204
            yield [w] * c
205
205
 
206
 
    def __unicode__(self):
 
206
    def __str__(self):
207
207
        return "%s/%s" % (self.tribe.name, self.name)