djun / tastyalchemy

SQLAlchemy object resource for django-tastypie. Currently written for baph (sqlalchemy innards for django)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tastyalchemy

SQLAlchemy object resource for django-tastypie

Usage

from baph.auth.models import User
from tastyalchemy import SQLAlchemyResource

class UserResource(SQLAlchemyResource):

    class Meta:
        resource_name = 'user'
        object_class = User
        allowed_methods = ['get', 'post', 'put', 'delete']
        excludes = ['password']

About

SQLAlchemy object resource for django-tastypie. Currently written for baph (sqlalchemy innards for django)


Languages

Language:Python 100.0%