Browse Source

добавил в улицы отображение имени объекта, метод __str__()

devel
http 9 years ago
parent
commit
03781c5cd6
  1. 3
      abonapp/models.py

3
abonapp/models.py

@ -151,6 +151,9 @@ class AbonStreets(models.Model):
name = models.CharField(max_length=64)
group = models.ForeignKey(AbonGroup)
def __str__(self):
return self.name
class Abon(UserProfile):
current_tariffs = models.ManyToManyField(Tariff, through=AbonTariff)

Loading…
Cancel
Save