one more file->documents
This commit is contained in:
parent
14f58532a8
commit
27877df0cd
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue