Skip to content

Instantly share code, notes, and snippets.

View bimusiek's full-sized avatar

Michal Hernas bimusiek

View GitHub Profile
@jmaicher
jmaicher / gist:5a5230e2a7699d4fd30b
Created May 9, 2015 10:17
(De-)serialize Plain Old Python Objects (POPOs) with Django Rest Framework
# encoding: utf-8
from __future__ import absolute_import, unicode_literals
import logging
from rest_framework import serializers
from rest_framework.exceptions import ValidationError
log = logging.getLogger(__name__)