django-db-views icon indicating copy to clipboard operation
django-db-views copied to clipboard

error: column "id" specified more than once

Open adeebx1 opened this issue 1 year ago • 1 comments

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

adeebx1 avatar Jan 22 '24 14:01 adeebx1

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

thank you

BezBartek avatar Jan 24 '24 12:01 BezBartek