{{{
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))
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25957>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0
Comment:
Please see TicketClosingReasons/UseSupportChannels.
--
Ticket URL: <https://code.djangoproject.com/ticket/25957#comment:1>
Comment (by RaminFP):
Replying to [comment:1 timgraham]:
> Please see TicketClosingReasons/UseSupportChannels.
i need this, how? oppssss
--
Ticket URL: <https://code.djangoproject.com/ticket/25957#comment:2>