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

Auto-determine DRF field properties based on LookupField properties #22

Open
seawolf42 opened this issue Jun 15, 2018 · 0 comments
Open
Labels
backlog enhancement New feature or request help wanted Extra attention is needed

Comments

@seawolf42
Copy link
Owner

seawolf42 commented Jun 15, 2018

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.

@seawolf42 seawolf42 added enhancement New feature or request help wanted Extra attention is needed labels Jun 15, 2018
@seawolf42 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog enhancement New feature or request help wanted Extra attention is needed
Projects
Development

No branches or pull requests

1 participant