Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Commit

Permalink
[carpentries#2062] Add InstructorRecruitment.get_absolute_url
Browse files Browse the repository at this point in the history
  • Loading branch information
pbanaszkiewicz committed Dec 11, 2021
1 parent 5b63d7f commit c223a8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions amy/recruitment/models.py
@@ -1,4 +1,5 @@
from django.db import models
from django.urls import reverse
from reversion import revisions as reversion

from workshops.mixins import CreatedUpdatedMixin, StateMixin
Expand All @@ -21,6 +22,9 @@ class InstructorRecruitment(CreatedUpdatedMixin, models.Model):
Event, on_delete=models.PROTECT, null=False, blank=False
)

def get_absolute_url(self):
return reverse("instructorrecruitment_details", kwargs={"pk": self.pk})


@reversion.register
class InstructorRecruitmentSignup(CreatedUpdatedMixin, StateMixin, models.Model):
Expand Down

0 comments on commit c223a8d

Please sign in to comment.