Re: modeling db inheritance

2007-08-27 Thread Lic. José M. Rodriguez Bacallao
; Michael > > > -Original Message- > > From: django-users@googlegroups.com [mailto: > [EMAIL PROTECTED] > > On Behalf Of Ernesto Rodriguez Reina > > Sent: Friday, August 24, 2007 7:38 PM > > To: Django users > > Subject: modeling db inheritance > >

RE: modeling db inheritance

2007-08-24 Thread Michael Elsdoerfer
sto Rodriguez Reina > Sent: Friday, August 24, 2007 7:38 PM > To: Django users > Subject: modeling db inheritance > > > Hello, > I'm need to model a table inheritance in a new project i'm working on, but > i > don't know the best way to do it. > >

Re: modeling db inheritance

2007-08-24 Thread Lic. José M. Rodriguez Bacallao
Primero, en django.contrib.auth.models esta definido un modelo User que tiene los datos que necesitas, para eso, debes poner en INSTALLED_APP en tu settings.py la sgte app: django.contrib.auth tu models.py o como se llame debera quedar asi: from django.db import models from django.contrib.auth.mo

modeling db inheritance

2007-08-24 Thread Ernesto Rodriguez Reina
Hello, I'm need to model a table inheritance in a new project i'm working on, but i don't know the best way to do it. Here is an explample of what i need: class User(models.Model): firstname = models.CharField(maxlength=100) lastname = models.CharField(maxlength=100) # This s