Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    wadofstuff-django-serializers 1.1.0

    Download button

    No screenshots available
    Downloads: 146  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Matthew Flanagan | More programs
    BSD License / FREE
    March 9th, 2011, 11:42 GMT [view history]
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    wadofstuff-django-serializers description

    Extended serializers for Django

    wadofstuff.django.serializers is a Python module that extends Django's built-in serializers, adding 3 new capabilities inspired by the Ruby on Rails JSON serializer. These parameters allow the developer more control over how their models are serialized.

    The additional capabilities are:

     excludes - a list of fields to be excluded from serialization. The excludes list takes precedence over the fields argument.
     extras - a list of non-model field properties or callables to be serialized.
     relations - a list or dictionary of model related fields to be followed and serialized.

    Example of serializing a relation

     >>> serializers.serialize('json', Group.objects.all(), indent=4, relations=('permissions',))
     [
     {
     "pk": 2,
     "model": "auth.group",
     "fields": {
     "name": "session",
     "permissions": [
     {
     "pk": 19,
     "model": "auth.permission",
     "fields": {
     "codename": "add_session",
     "name": "Can add session",
     "content_type": 7
     }
     }
     ]
     }
     }
     ]



    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Added support for "natural keys" as implemented in Django.

      


    TAGS:

    Django serializers | serializers extender | JSON serializer | Django | serializers | extender

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM