django-polyfield

Django Polyfield


Keywords
django, polymorphic, field, json
License
MIT
Install
pip install django-polyfield==0.1.0

Documentation

Django Polyfield

Django Polyfield makes it possible to have a field in a Django model with polymorphic class. The field could have a single instance or a list of instances which could have different classes. Only requirement is that all of the classes are derived from PolyObject and implement JSON serialization.