Exactly. Django-mptt is very easy to use, and takes away a lot the
pain trying to manage hierarchical data in a relational database (and
django-mptt does it in an efficient manner).
Write if you have any problems with it, and I can help out.
Cheers,
Lars
On Feb 21, 8:25 pm, "Ramiro Morales"
On Thu, Feb 21, 2008 at 10:22 AM, shabda <[EMAIL PROTECTED]> wrote:
>
> I have a model like
>
> class Task(models.Model):
> name = Models.CharField(max_length = 100)
> parent = models.ForeignKey('Task', null = True)
>
> Using this model say I have got a table like,
>
> Task
> ---
>
That would help once I get the relational data to a hierarchical list,
and that is the difficult part!
On Feb 21, 10:59 pm, Brian Luft <[EMAIL PROTECTED]> wrote:
> http://www.djangoproject.com/documentation/templates/#unordered-list
>
> On Feb 21, 4:22 am, shabda <[EMAIL PROTECTED]> wrote:
>
> >
http://www.djangoproject.com/documentation/templates/#unordered-list
On Feb 21, 4:22 am, shabda <[EMAIL PROTECTED]> wrote:
> I have a model like
>
> class Task(models.Model):
> name = Models.CharField(max_length = 100)
> parent = models.ForeignKey('Task', null = True)
>
> Using this model
> I have a model like
>
> class Task(models.Model):
> name = Models.CharField(max_length = 100)
> parent = models.ForeignKey('Task', null = True)
>
> Using this model say I have got a table like,
>
> Task
> ---
> ID Name Parent_id
> 1 Foo null
> 2 Bar 1
> 3 Baz1
> 4
I have a model like
class Task(models.Model):
name = Models.CharField(max_length = 100)
parent = models.ForeignKey('Task', null = True)
Using this model say I have got a table like,
Task
---
ID Name Parent_id
1 Foo null
2 Bar 1
3 Baz1
4 Bax2
I want to
6 matches
Mail list logo