django-openinghours icon indicating copy to clipboard operation
django-openinghours copied to clipboard

on_delete

Open harryd31 opened this issue 7 years ago • 1 comments

on delete needs to be added to both the closing and opening where it's company = models.ForeignKey(PREMISES_MODEL, verbose_name=_('Company'))

as newer versions such as 2.0 require an on_delete now

company = models.ForeignKey(PREMISES_MODEL, verbose_name=_('Company'), on_delete=models.CASCADE)

harryd31 avatar Oct 12 '17 02:10 harryd31

Yeah - This one's affecting me too! Any idea when the fix for this will be merged?

JimHaywood avatar Mar 05 '18 15:03 JimHaywood