Paul's Programming Notes
PostsRSSGithub

Django API Forms

23 Apr 2020

Just found a really cool library for using Django’s built-in forms to validate JSON: https://github.com/Sibyx/django_api_forms

I made a small example with it to show how it works with ModelChoiceFields: https://github.com/pawl/django_api_forms_modelchoicefield_example

Seems like a more lightweight version of DRF’s serializers (but only for deserializing and validating) and with a similar API to Django’s built-in forms.

pythondjango

Related posts

  • Django - ModelChoiceField queryset caching 23 Apr 2020
  • Learning Vue Through Terrible Pull Requests 18 Apr 2020
  • Django - Requiring Prefetching 06 May 2020
© 2026. All rights reserved.