simpleenergy / django-rest-framework-multi-slug-field

A serializer field for representing a relationship via a combination of fields on the target.
BSD 3-Clause "New" or "Revised" License
8 stars 0 forks source link

============================= django-rest-framework-multi-slug-field

.. image:: https://badge.fury.io/py/django-rest-framework-multi-slug-field.png :target: https://badge.fury.io/py/django-rest-framework-multi-slug-field

.. image:: https://travis-ci.org/simpleenergy/django-rest-framework-multi-slug-field.png?branch=master :target: https://travis-ci.org/simpleenergy/django-rest-framework-multi-slug-field

.. image:: https://coveralls.io/repos/simpleenergy/django-rest-framework-multi-slug-field/badge.png?branch=master :target: https://coveralls.io/r/simpleenergy/django-rest-framework-multi-slug-field?branch=master

A field for representing a relationship via multiple fields on the target

Documentation

The full documentation is at http://drf-multislugfield.readthedocs.org/en/latest/index.html

Quickstart

Install django-rest-framework-multi-slug-field::

pip install django-rest-framework-multi-slug-field

Then use it in a project::

from rest_framework_msf.fields import MultiSlugRelatedField

Features