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

error: column "id" specified more than once #30

Open
adeebx1 opened this issue Jan 22, 2024 · 1 comment
Open

error: column "id" specified more than once #30

adeebx1 opened this issue Jan 22, 2024 · 1 comment

Comments

@adeebx1
Copy link

adeebx1 commented Jan 22, 2024

I got the following error when trying to join two tables as follow:

view_definition = lambda: str(SomeModel.objects.select_related("another_model").query)

error:

django.db.utils.ProgrammingError: column "id" specified more than once
@BezBartek
Copy link
Owner

@adeebx1
Hello,
Could you provide more details? like definition of models?
Generated query string would be great

thank you

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

No branches or pull requests

2 participants