replace drf by django-ninja

This commit is contained in:
thomas girod committed 2024-07-23 19:57:33 +02:00
1 parent d9531838f2
commit 3046438cb1
43 files changed
+1001 -1191

No files matched your search

+2 -4
View File
@@ -486,10 +486,8 @@ class Mailing(models.Model):
super().delete()
def fetch_format(self):
resp = self.email + ": "
for sub in self.subscriptions.all():
resp += sub.fetch_format()
return resp
destination = "".join(s.fetch_format() for s in self.subscriptions.all())
return f"{self.email}: {destination}"
class MailingSubscription(models.Model):