Change oioioi~master~Idbb720a4661be1387a5aea2d4a5cf9011d89cd82, patchset 4
https://gerrit.sio2project.mimuw.edu.pl/3150
(
SIO-2158) Set ForeignKey on_delete behaviour
This solves following warning:
RemovedInDjango20Warning: on_delete will be a required arg for ForeignKey in Django 2.0. Set it to models.CASCADE on models and in existing migrations if you want to maintain the current default behavior. See
https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.ForeignKey.on_delete
Existing migrations were adjusted to include the default of
on_delete=models.CASCADE
In few places on_delete was defined as models.SET_NULL by this commit,
as such behaviour seems intended from the context. Relevant migrations
were added.
Change-Id: Idbb720a4661be1387a5aea2d4a5cf9011d89cd82
https://gerrit.sio2project.mimuw.edu.pl/3150
(
SIO-2158) Set ForeignKey on_delete behaviourThis solves following warning:
RemovedInDjango20Warning: on_delete will be a required arg for ForeignKey in Django 2.0. Set it to models.CASCADE on models and in existing migrations if you want to maintain the current default behavior. See https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.ForeignKey.on_delete
Existing migrations were adjusted to include the default of
on_delete=models.CASCADE
In few places on_delete was defined as models.SET_NULL by this commit,
as such behaviour seems intended from the context. Relevant migrations
were added.
Change-Id: Idbb720a4661be1387a5aea2d4a5cf9011d89cd82