You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once include_fk is set to True anywhere in the MRO of a schema, it cannot be disabled. As a workaround, it can be excluded (e.g. exclude = ('author_id',)).
@lafrech @Anomareh I ran into the same issue and thought I created a PR for a potential fix.
The main issue is that get_declared_fields does not really differentiate between fields and inherited_fields so the information surrounding which fields have been added by include_fk is lost when inheriting.
Once
include_fk
is set toTrue
anywhere in the MRO of a schema, it cannot be disabled. As a workaround, it can be excluded (e.g.exclude = ('author_id',)
).Minimal reproducible example:
The text was updated successfully, but these errors were encountered: