The SIO2 project
  1. The SIO2 project
  2. SIO-1138

django.modelAdmin does not check the unique_together constraint

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.1.2
    • Fix Version/s: 0.1.3
    • Component/s: OIOIOI
    • Labels:
      None
    • Story Points:
      1

      Description

      When attempt to create a Region or Participant which already exists we get InternalError instead of user-friendly error message. It seems that django.modelAdmin does not check the unique_together constraint on these models when creating new objects.

        Activity

        Hide
        Gerrit Gerrit added a comment -
        Change I17f566ce1d2dc72207324863551aaad77b47deab, patchset 1
        https://gerrit.sio2project.mimuw.edu.pl/1451

        SIO-1138 No InternalError when creating an existing Region or Participant

        Change-Id: I17f566ce1d2dc72207324863551aaad77b47deab
        Show
        Gerrit Gerrit added a comment - Change I17f566ce1d2dc72207324863551aaad77b47deab, patchset 1 https://gerrit.sio2project.mimuw.edu.pl/1451 SIO-1138 No InternalError when creating an existing Region or Participant Change-Id: I17f566ce1d2dc72207324863551aaad77b47deab
        Hide
        Gerrit Gerrit added a comment -
        Change I17f566ce1d2dc72207324863551aaad77b47deab, patchset 2
        https://gerrit.sio2project.mimuw.edu.pl/1451

        SIO-1138 No InternalError when creating an existing Region or Participant

        Change-Id: I17f566ce1d2dc72207324863551aaad77b47deab
        Show
        Gerrit Gerrit added a comment - Change I17f566ce1d2dc72207324863551aaad77b47deab, patchset 2 https://gerrit.sio2project.mimuw.edu.pl/1451 SIO-1138 No InternalError when creating an existing Region or Participant Change-Id: I17f566ce1d2dc72207324863551aaad77b47deab
        Hide
        Gerrit Gerrit added a comment -
        Change I17f566ce1d2dc72207324863551aaad77b47deab, patchset 3
        https://gerrit.sio2project.mimuw.edu.pl/1451

        SIO-1138 No InternalError when creating an existing Region or Participant

        Change-Id: I17f566ce1d2dc72207324863551aaad77b47deab
        Show
        Gerrit Gerrit added a comment - Change I17f566ce1d2dc72207324863551aaad77b47deab, patchset 3 https://gerrit.sio2project.mimuw.edu.pl/1451 SIO-1138 No InternalError when creating an existing Region or Participant Change-Id: I17f566ce1d2dc72207324863551aaad77b47deab
        Hide
        Gerrit Gerrit added a comment -
        Change I17f566ce1d2dc72207324863551aaad77b47deab, patchset 4
        https://gerrit.sio2project.mimuw.edu.pl/1451

        SIO-1138 No InternalError when creating an existing Region or Participant

        Change-Id: I17f566ce1d2dc72207324863551aaad77b47deab
        Show
        Gerrit Gerrit added a comment - Change I17f566ce1d2dc72207324863551aaad77b47deab, patchset 4 https://gerrit.sio2project.mimuw.edu.pl/1451 SIO-1138 No InternalError when creating an existing Region or Participant Change-Id: I17f566ce1d2dc72207324863551aaad77b47deab
        Hide
        Gerrit Gerrit added a comment -
        Change I17f566ce1d2dc72207324863551aaad77b47deab, patchset 5
        https://gerrit.sio2project.mimuw.edu.pl/1451

        SIO-1138 No InternalError when creating an existing Region or Participant

        Change-Id: I17f566ce1d2dc72207324863551aaad77b47deab
        Show
        Gerrit Gerrit added a comment - Change I17f566ce1d2dc72207324863551aaad77b47deab, patchset 5 https://gerrit.sio2project.mimuw.edu.pl/1451 SIO-1138 No InternalError when creating an existing Region or Participant Change-Id: I17f566ce1d2dc72207324863551aaad77b47deab

          People

          • Assignee:
            Mateusz Kwapich
            Reporter:
            Maciej Kisiel
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: