Fix: Reverse URL path
This commit is contained in:
parent
6fdc478b62
commit
f652b213cf
1 changed files with 4 additions and 4 deletions
|
@ -36,7 +36,7 @@ class User_Profile_Images(models.Model):
|
|||
return self.file_name
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse('serve_content_file', args=['user_profile', self.file_hash])
|
||||
return reverse('files:serve_content_file', args=['user_profile', self.file_hash])
|
||||
|
||||
|
||||
class User_Banner_Images(models.Model):
|
||||
|
@ -54,7 +54,7 @@ class User_Banner_Images(models.Model):
|
|||
return self.file_name
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse('serve_content_file', args=['user_banner', self.file_hash])
|
||||
return reverse('files:serve_content_file', args=['user_banner', self.file_hash])
|
||||
|
||||
|
||||
class Submission_File(models.Model):
|
||||
|
@ -72,7 +72,7 @@ class Submission_File(models.Model):
|
|||
return self.file_name
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse('serve_content_file', args=['submission', self.file_hash])
|
||||
return reverse('files:serve_content_file', args=['submission', self.file_hash])
|
||||
|
||||
|
||||
class Metadata_Files(models.Model):
|
||||
|
@ -90,4 +90,4 @@ class Metadata_Files(models.Model):
|
|||
return self.file_name
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse('serve_content_file', args=['metadata', self.file_hash])
|
||||
return reverse('files:serve_content_file', args=['metadata', self.file_hash])
|
||||
|
|
Loading…
Reference in a new issue