feat: Add subscriptions to admin site

This commit is contained in:
2024-09-29 23:35:18 +02:00
parent 2d20423736
commit a28b6ce4b3
4 changed files with 9 additions and 5 deletions

View File

@@ -597,3 +597,6 @@ class Subscriptions(models.Model):
owner = models.ForeignKey(User, on_delete=models.CASCADE, verbose_name=_('Nutzer*in'))
adoption_notice = models.ForeignKey(AdoptionNotice, on_delete=models.CASCADE, verbose_name=_('AdoptionNotice'))
created_at = models.DateTimeField(auto_now_add=True)
def __str__(self):
return f"{self.owner} - { self.adoption_notice }"