Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in django admin area when editing a booking #40

Open
grundleborg opened this issue Jan 18, 2023 · 0 comments
Open

Fix bug in django admin area when editing a booking #40

grundleborg opened this issue Jan 18, 2023 · 0 comments
Labels
bug Something isn't working s1 Current sprint

Comments

@grundleborg
Copy link
Member

Get a unique constraint violation at the moment, even though it shouldn't.

@grundleborg grundleborg added bug Something isn't working s1 Current sprint labels Jan 18, 2023
grundleborg added a commit that referenced this issue Jan 19, 2023
Seems that the new 4.1 constraint validation fails on editing an object
with the type of exclusion constraint we have on bookings.

This workaround avoids python-side validation of that constraint so that
the edit can go through. If the constraint is really violated, the DB
will error on the update instead.

This is a workaround for #40 until I figure out if it's really a Django
bug or not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working s1 Current sprint
Projects
None yet
Development

No branches or pull requests

1 participant