mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-13 22:26:01 +00:00
replace drf by django-ninja
This commit is contained in:
1 parent
d9531838f2
commit
3046438cb1
43 files changed
+1001
-1191
No files matched your search
+2
-4
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user