Recursive model queries

2015-08-26 Thread Shekar Tippur
Hello, I am trying to use https://github.com/heywbj/django-rest-framework-recursive I need to be able to run query on a recursive model that gives the name of the parent and child My model class RecursiveModel(models.Model): stage_title = models.CharField(max_length=255, unique=True

Recursive model

2010-01-20 Thread Alessandro Ronchi
I tried to make a resursive model: http://dpaste.com/147941/ but in admin I cannot see dipende_da widget. In shell I have. segnalazione.dipende_da (,) My admin is : http://dpaste.com/147940/ Do you know what's wrong? -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sist

Recursive model optimization

2009-06-10 Thread Kedare
Hi all, I use in my web application a recursive model like that : class Category(models.Model): title = models.CharField(verbose_name=_("title"), unique=True, db_index=True, max_length=255) slug = models.SlugField(verbose_name=_("s

Re: Recursive Model Setup in Admin - Error (null, blank = True)

2009-05-02 Thread Anthony
Well, I figured it out. I needed to rerun they 'syncdb' command after making my change. Thanks for reading! On May 2, 8:49 am, Anthony wrote: > On May 2, 1:32 am, Daniel Roseman > wrote: > > > On May 2, 8:48 am, Anthony wrote: > > > My model: > > > > class Bracket(models.Model): > > >    

Re: Recursive Model Setup in Admin - Error (null, blank = True)

2009-05-02 Thread Anthony
On May 2, 1:32 am, Daniel Roseman wrote: > On May 2, 8:48 am, Anthony wrote: > > My model: > > > class Bracket(models.Model): > >     m = models.ForeignKey(OtherModel) > > <- no problem with this > >     parent = models.ForeignKey('self', blank=True

Re: Recursive Model Setup in Admin - Error (null, blank = True)

2009-05-02 Thread Daniel Roseman
On May 2, 8:48 am, Anthony wrote: > I'm trying to instantiate a recursive object model via the admin, but > am getting an error. > > My model: > > class Bracket(models.Model): >     m = models.ForeignKey(OtherModel) >     parent = models.ForeignKey('self', blank=True, null=True) >     name = mode

Recursive Model Setup in Admin - Error (null, blank = True)

2009-05-02 Thread Anthony
I'm trying to instantiate a recursive object model via the admin, but am getting an error. My model: class Bracket(models.Model): m = models.ForeignKey(OtherModel) parent = models.ForeignKey('self', blank=True, null=True) name = models.CharField(max_length = 30) The error: Integr