﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25957	how to access SQLAlchemy to Django Model ?	Ramin Farajpour Cami	Ramin Farajpour Cami	"A basic Django model looks something like this:

{{{
class Person(models.Model):
       first_name = models.CharField(max_length=30)
       last_name = models.CharField(max_length=30)
}}}
The equivalent SQLAlchemy model with declarative base looks like this:
{{{
from sqlalchemy import Column, Integer, String
class Person(Base):
    __tablename__ = 'persons'
    id = Column(Integer, primary_key=True)
    first_name = Column(String(30))
    last_name = Column(String(30))
}}}
"	Uncategorized	closed	Uncategorized	1.9	Normal	invalid			Unreviewed	0	0	0	0	0	0
