diff --git a/coinmanager/coinc/models.py b/coinmanager/coinc/models.py index e95631d..735f70a 100644 --- a/coinmanager/coinc/models.py +++ b/coinmanager/coinc/models.py @@ -47,8 +47,6 @@ class Country(Model): euro_member_since = PositiveSmallIntegerField('Währungsmitglied seit', default=year_now) - stamps = ForeignKey('Stamp', on_delete=CASCADE, null=True, blank=True) - def __str__(self): return f"{self.name} - {self.name_iso}, Mitglied seit {self.euro_member_since}" @@ -64,13 +62,14 @@ class Stamp(Model): comment = TextField('Kommentar', default='', blank=True) + country = ForeignKey('Country', on_delete=CASCADE, null=True, blank=True) + def __str__(self): return f"{self.name_short} - {self.name} {self.comment}" - class Coin(Model): value = PositiveSmallIntegerField('Wert', default=100)