Commit dc9bb486cea351dbaf6cf4f386176278c2f39b86

Authored by pyros_astroguita
1 parent 46423b05
Exists in dev

sequence on_delete quota set_null

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/core/pyros_django/seq_submit/models.py
... ... @@ -352,7 +352,7 @@ class Sequence(models.Model):
352 352 flag = models.CharField(max_length=45, blank=True, null=True)
353 353 period = models.ForeignKey(Period, on_delete=models.DO_NOTHING, related_name="sequence_period", blank=True, null=True)
354 354 #period = models.ForeignKey("Period", on_delete=models.DO_NOTHING, related_name="sequences", blank=True, null=True)
355   - quota = models.ForeignKey(Quota, on_delete=models.DO_NOTHING,related_name="sequence_quotas", blank=True, null=True)
  355 + quota = models.ForeignKey(Quota, on_delete=models.SET_NULL,related_name="sequence_quotas", blank=True, null=True)
356 356  
357 357 start_date = models.DateTimeField(
358 358 blank=True, null=True, default=timezone.now, editable=True)
... ...