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
The django-rest-framework serializer field specified in drf_fields.py currently requires the user specify a table for the lookup, and if the model field is optional the user must also provide allow_null=True and required=False on the serializer field. This should be determined automatically by inspecting the model field.
The text was updated successfully, but these errors were encountered:
seawolf42
changed the title
Auto-determine DRF field properties based on LookupTable and LookupTableItem data
Auto-determine DRF field properties based on LookupField properties
Aug 10, 2018
The
django-rest-framework
serializer field specified indrf_fields.py
currently requires the user specify a table for the lookup, and if the model field is optional the user must also provideallow_null=True
andrequired=False
on the serializer field. This should be determined automatically by inspecting the model field.The text was updated successfully, but these errors were encountered: