Browse Source

при добавлении группы абонентов, профили не обязательны

devel
Dmitry 9 years ago
parent
commit
a4204bb08f
  1. 2
      abonapp/models.py

2
abonapp/models.py

@ -28,7 +28,7 @@ class LogicError(Exception):
class AbonGroup(models.Model): class AbonGroup(models.Model):
title = models.CharField(max_length=127, unique=True) title = models.CharField(max_length=127, unique=True)
profiles = models.ManyToManyField(UserProfile, related_name='abon_groups')
profiles = models.ManyToManyField(UserProfile, blank=True, related_name='abon_groups')
class Meta: class Meta:
db_table = 'abonent_groups' db_table = 'abonent_groups'

Loading…
Cancel
Save