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

Make registry court non nullable #1838

Merged
merged 1 commit into from
Jun 4, 2024
Merged

Make registry court non nullable #1838

merged 1 commit into from
Jun 4, 2024

Conversation

actlikewill
Copy link
Contributor

Trying to run update_or_create on CourtRegistry (for KL) with the court being nullable causes a bunch of errors.
This field should be non nullable anyway. since it derives the code from the court if it doesn't have its own.
Django complained that you cannot change a nullable field to non nullable without a default. The field was set as required in the admin so all existing registries across all LIIs should already have a court so I don't think we need to have a default.

@actlikewill actlikewill marked this pull request as ready for review June 4, 2024 10:07
@actlikewill actlikewill changed the title Make court registry non nullable Make registry court non nullable Jun 4, 2024
@actlikewill actlikewill merged commit 9398ee8 into main Jun 4, 2024
9 checks passed
@actlikewill actlikewill deleted the registry-court branch June 4, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants