Skip to main content

Django queryset and serialization together

Project description

django-qserializer

Django QSerializer started as an internal Buser project to improve our serialization process.

Database queries and serialization are two separated step, but really ORM coupled. Relationships must be fetched from database before serialization, but Django don't have an easy way to define that.

from django.db import models
from django_qserializer import SerializableManager


class Company(models.Model):
    name = models.CharField(max_length=64)


class Bus(models.Model):
    company = models.ForeignKey(Company, on_delete=models.SET_NULL)
    objects = SerializableManager()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_qserializer-0.1.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

django_qserializer-0.1-py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page