Skip to content

Conversation

@bslocombe
Copy link

@bslocombe bslocombe commented Aug 16, 2023

I started with the fix from snphan however this still crashed with the array field. Digging a little deeper, I was unclear how the arrayfield was even being initialised.

This patch should fix the original issue, dict does not have _meta for embedded field, but also the list does not have _meta for the array field. Bit confused as to what the intended structure was for these forms but I have tested on a few of my own apps with version 3.2 in the admin and it appears to work fine.

This should address #624 but possibly a few other issues I saw open still.

Since I use this for a few projects, ill keep maintaining my fork until this is merged in/ fixed otherwise

christofer holm and others added 18 commits November 1, 2022 18:10
Previous versions of django ran a foreign key lookup with a const (1)
parameter in the column list.  Django 4 changed that to a parameterized
value and pass the parameter value 1.  I have created a new token type to
hold the aliased paramaterized value.  SQLConstParameterizedIdentifier
is subclassed from SQLConstIdentifier, and the original functionality is
broken out into SQLConstIntIdentifier.  This should allow anything that
was using isinstanceof for SQLConstIdentifier to still work and allows
expansion to other non-int constants.
A test case has been added for the django 4 select statement.
# Conflicts:
#	requirements.txt
#	setup.py
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.