|
@@ -126,7 +126,7 @@ class Service(models.Model):
|
|
|
contribution = models.OneToOneField(RecurringPayment)
|
|
|
|
|
|
def save(self, *args, **kwargs):
|
|
|
- if not self.contribution:
|
|
|
+ if not hasattr(self, 'contribution'):
|
|
|
self.contribution = RecurringPayment.objects.create()
|
|
|
super().save(*args, **kwargs)
|
|
|
|