Skip to content

Commit

Permalink
migrate view-on-site to use new urls.reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlFK committed Jan 18, 2024
1 parent 2067bfa commit 95447ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions dj/main/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,10 @@ def get_minutes(self):
def __str__(self):
return self.filename

# @models.permalink
def get_absolute_url(self):
return ('raw_file', [self.id,])
return urls.reverse('raw_file', kwargs={"raw_file_id": self.id})
# return reverse("people-detail", kwargs={"pk": self.pk})
# return ('raw_file', [self.id,])

class Meta:
ordering = ["start", "location", "filename"]
Expand Down
2 changes: 1 addition & 1 deletion dj/main/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

from .unique_slugify import fnify

from lib import richard
# from lib import richard


def main(request):
Expand Down

0 comments on commit 95447ab

Please sign in to comment.