Details

    • Type: Sub-task Sub-task
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: TAG 2018/19 Sprint 1
    • Fix Version/s: None
    • Component/s: OIOIOI
    • Labels:

      Description

      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

        Activity

        Hide
        Gerrit Gerrit added a comment -
        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
        Show
        Gerrit Gerrit added a comment - 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
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~Idbb720a4661be1387a5aea2d4a5cf9011d89cd82, patchset 3
        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
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~Idbb720a4661be1387a5aea2d4a5cf9011d89cd82, patchset 3 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
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~Idbb720a4661be1387a5aea2d4a5cf9011d89cd82, patchset 2
        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
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~Idbb720a4661be1387a5aea2d4a5cf9011d89cd82, patchset 2 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
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~Idbb720a4661be1387a5aea2d4a5cf9011d89cd82, patchset 1
        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

        In few places on_delete was defined as models.SET_NULL by this commit,
        as such behaviour seems intended from the context.

        Change-Id: Idbb720a4661be1387a5aea2d4a5cf9011d89cd82
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~Idbb720a4661be1387a5aea2d4a5cf9011d89cd82, patchset 1 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 In few places on_delete was defined as models.SET_NULL by this commit, as such behaviour seems intended from the context. Change-Id: Idbb720a4661be1387a5aea2d4a5cf9011d89cd82

          People

          • Assignee:
            Szymon Acedański
            Reporter:
            Michał Sidor
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: