diff --git a/orchestra/contrib/plans/models.py b/orchestra/contrib/plans/models.py index af8d41a1..3c87da00 100644 --- a/orchestra/contrib/plans/models.py +++ b/orchestra/contrib/plans/models.py @@ -71,7 +71,8 @@ class RateQuerySet(models.QuerySet): class Rate(models.Model): service = models.ForeignKey('services.Service', verbose_name=_("service"), related_name='rates') - plan = models.ForeignKey(Plan, verbose_name=_("plan"), related_name='rates') + plan = models.ForeignKey(Plan, verbose_name=_("plan"), related_name='rates', null=True, + blank=True) quantity = models.PositiveIntegerField(_("quantity"), null=True, blank=True, help_text=_("See rate algorihm help text.")) price = models.DecimalField(_("price"), max_digits=12, decimal_places=2) diff --git a/requirements.txt b/requirements.txt index 86e13d7e..6fc0c656 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,7 +13,7 @@ Pygments==1.6 django-filter==0.7 jsonfield==0.9.22 python-dateutil==2.2 -passlib==1.6.2 +passlib==1.6.5 django-iban==0.3.0 requests phonenumbers