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 "unknown column" exception #943

Merged

Conversation

yogeshjain999
Copy link
Contributor

@yogeshjain999 yogeshjain999 commented Jun 6, 2020

When custom slug_column is used along with history and
sequentially_slugged modules, wrong query was being formed on Slug
model.

Query being made - select friendly_id_slugs."strange name" from artists
Query which should be made - select friendly_id_slugs.slug from artists

This commit fixes it to use default slug column in such case.

When custom `slug_column` is used along with `history` and
`sequentially_slugged` modules, wrong query was being formed on `Slug`
model.

Query being made - `select friendly_id_slugs.strange name from artists`
Query which should be made - `select friendly_id_slugs.slug from artists`

This commit fixes it to use default `slug` column in such case.
@stale stale bot added stale and removed stale labels Jul 26, 2020
Repository owner deleted a comment from stale bot Jul 26, 2020
@parndt parndt added the Bug label Aug 13, 2020
@stale
Copy link

stale bot commented Nov 6, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 6, 2020
@parndt parndt removed the stale label Nov 6, 2020
@stale
Copy link

stale bot commented Jan 30, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 30, 2021
A method name with `and` is usually an indicator that it does too much
@stale stale bot removed the stale label Jan 31, 2021
@parndt parndt merged commit 2b29ae7 into norman:master Jan 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants