fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Necessary rounding.
[wolnelektury.git]
/
src
/
polls
/
models.py
diff --git
a/src/polls/models.py
b/src/polls/models.py
index
bfc3639
..
4b1882d
100644
(file)
--- a/
src/polls/models.py
+++ b/
src/polls/models.py
@@
-26,7
+26,7
@@
class Poll(models.Model):
raise ValidationError(_('Slug of an open poll needs to be unique'))
return super(Poll, self).clean()
raise ValidationError(_('Slug of an open poll needs to be unique'))
return super(Poll, self).clean()
- def __
unicode
__(self):
+ def __
str
__(self):
return self.question[:100] + ' (' + self.slug + ')'
def get_absolute_url(self):
return self.question[:100] + ' (' + self.slug + ')'
def get_absolute_url(self):
@@
-50,8
+50,8
@@
class PollItem(models.Model):
verbose_name = _('vote item')
verbose_name_plural = _('vote items')
verbose_name = _('vote item')
verbose_name_plural = _('vote items')
- def __
unicode
__(self):
- return self.content + ' @ ' +
unicode
(self.poll)
+ def __
str
__(self):
+ return self.content + ' @ ' +
str
(self.poll)
@property
def vote_ratio(self):
@property
def vote_ratio(self):