-
Notifications
You must be signed in to change notification settings - Fork 79
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
Show police department on the image and tag detail pages #307
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may just be a thing that's done magically by sqlalchemy but doesn't the raw_images.department_id column need to be populated (presumably with '1' for the first department for existing images) in order to not violate the constraint you'll be imposing on it?
Also, did I miss the place where uploaded raw_images will have the department ID set on them (possibly in another PR)? Because an insert without a department_id will cause a FK constraint violation.
You probably figured this out hence the merge, but writing out here for posterity:
Yep! The |
Ohh I see ya moved that bit o' code over here. That's 💯 |
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 3.2.1 to 3.2.2. - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md) - [Commits](pre-commit/pre-commit@v3.2.1...v3.2.2) --- updated-dependencies: - dependency-name: pre-commit dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Status
Ready for review
Description of Changes
Fixes #305.
Changes proposed in this pull request:
Testing / Deployment
Tests and linting
I have rebased my changes on current
develop
pytests pass in the development environment on my local machine
flake8
checks pass