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
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
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
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):
> > >
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
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
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
7 matches
Mail list logo