fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor upgrades.
[redakcja.git]
/
src
/
toolbar
/
models.py
diff --git
a/src/toolbar/models.py
b/src/toolbar/models.py
index
a23e346
..
fbaa396
100644
(file)
--- a/
src/toolbar/models.py
+++ b/
src/toolbar/models.py
@@
-16,7
+16,7
@@
class ButtonGroup(models.Model):
ordering = ('position', 'name',)
verbose_name, verbose_name_plural = _('button group'), _('button groups')
ordering = ('position', 'name',)
verbose_name, verbose_name_plural = _('button group'), _('button groups')
- def __
unicode
__(self):
+ def __
str
__(self):
return self.name
def to_dict(self, with_buttons=False):
return self.name
def to_dict(self, with_buttons=False):
@@
-63,7
+63,7
@@
class Button(models.Model):
'scriptlet_id': self.scriptlet_id,
}
'scriptlet_id': self.scriptlet_id,
}
- def __
unicode
__(self):
+ def __
str
__(self):
return self.label
return self.label
@@
-71,5
+71,5
@@
class Scriptlet(models.Model):
name = models.CharField(max_length=64, primary_key=True)
code = models.TextField()
name = models.CharField(max_length=64, primary_key=True)
code = models.TextField()
- def __
unicode
__(self):
+ def __
str
__(self):
return _(u'javascript') + u':' + self.name
return _(u'javascript') + u':' + self.name