From 4aac66006a48db202790d2fbff53ae7967fa12dc Mon Sep 17 00:00:00 2001 From: "Tomas \"Jethro\" Pokorny" Date: Sat, 5 Dec 2015 14:42:46 +0100 Subject: [PATCH] Oprava stringifikace oprav a komentaru. --- korektury/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/korektury/models.py b/korektury/models.py index 75593af3..ceac374a 100644 --- a/korektury/models.py +++ b/korektury/models.py @@ -121,7 +121,7 @@ class Oprava(models.Model): # setattr(self,k,v) def __str__(self): - return force_unicode(u'%s od %s: %s',self.status,self.autor,self.text) + return force_unicode(u'%s od %s: %s'%(self.status,self.autor,self.text)) @@ -146,7 +146,7 @@ class Komentar(models.Model): text = models.TextField(u'text komentáře',blank = True, help_text='Text komentáře') def __str__(self): - return force_unicode(u'%s od %s: %s',self.cas,self.autor,self.text) + return force_unicode(u'%s od %s: %s'%(self.cas,self.autor,self.text))