fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[redakcja.git]
/
src
/
dvcs
/
models.py
diff --git
a/src/dvcs/models.py
b/src/dvcs/models.py
index
ed771c4
..
5d465ca
100644
(file)
--- a/
src/dvcs/models.py
+++ b/
src/dvcs/models.py
@@
-11,7
+11,7
@@
from django.core.files.storage import FileSystemStorage
from django.db import models, transaction
from django.db.models.base import ModelBase
from django.utils.text import format_lazy
from django.db import models, transaction
from django.db.models.base import ModelBase
from django.utils.text import format_lazy
-from django.utils.translation import
u
gettext_lazy as _
+from django.utils.translation import gettext_lazy as _
import merge3
from django.conf import settings
import merge3
from django.conf import settings
@@
-94,7
+94,7
@@
class Change(models.Model):
unique_together = ['tree', 'revision']
def __str__(self):
unique_together = ['tree', 'revision']
def __str__(self):
- return
u"Id: %r, Tree %r, Parent %r, Data: %s" % (self.id, self.tree_id, self.parent_id, self.data
)
+ return
"rev. {} @ {}".format(self.revision, self.created_at
)
def author_str(self):
if self.author:
def author_str(self):
if self.author: