X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/67f5a03a4014feed95edf75d165f3cd669041426..3926278cfa367a8426cd744d662fce78a034362e:/apps/funding/models.py?ds=inline diff --git a/apps/funding/models.py b/apps/funding/models.py index 0bd5360f9..de52ac9d8 100644 --- a/apps/funding/models.py +++ b/apps/funding/models.py @@ -233,6 +233,9 @@ class Funding(models.Model): def get_absolute_url(self): return reverse('funding_funding', args=[self.pk]) + def perk_names(self): + return ", ".join(perk.name for perk in self.perks.all()) + def get_disable_notifications_url(self): return "%s?%s" % (reverse("funding_disable_notifications"), urlencode({