one more file->documents

This commit is contained in:
j 2013-05-27 20:03:18 +00:00
parent 14f58532a8
commit 27877df0cd

View file

@ -86,7 +86,7 @@ class Document(models.Model):
return username, name, extension
def get_absolute_url(self):
return ('/files/%s' % quote(self.get_id())).replace('%3A', ':')
return ('/documents/%s' % quote(self.get_id())).replace('%3A', ':')
def get_id(self):
return u'%s:%s.%s' % (self.user.username, self.name, self.extension)