Skip to content

Instantly share code, notes, and snippets.

View supritashankar's full-sized avatar
🙃

Suprita Shankar supritashankar

🙃
  • San Francisco
View GitHub Profile
@supritashankar
supritashankar / resources.py
Created January 25, 2013 14:59
Nested Resources in Django Tastypie
from django.contrib.auth.models import User
from tastypie.resources import ModelResource
from tastypie import fields
from employee.models import Employee, Message
from tastypie.authentication import OAuthAuthentication
from extendedmodelresource import ExtendedModelResource
from django.conf.urls import patterns, url, include
from tastypie.utils import trailing_slash
class UserResource(ModelResource):