Thanks for the suggestion.
But I don't want to use any third party addon/module such as MPTT or
Tree-Beard.
Regards
R
On Thursday, August 12, 2021 at 2:35:18 PM UTC+5:30 sebasti...@gmail.com
wrote:
> Hello Rahul,
>
> i Django MPTT tutorial you find in modely.py:
>
> from django.db import
Hello Rahul,
i Django MPTT tutorial you find in modely.py:
from django.db import modelsfrom mptt.models import MPTTModel, TreeForeignKey
class Genre(MPTTModel):
name = models.CharField(max_length=50, unique=True)
parent = TreeForeignKey('self', on_delete=models.CASCADE,
null=True,
Hi All,
I have a category Model like this one which is based on *Adjacency List*.
class Category(models.Model):
name = models.CharField(blank=False, max_length=200)
slug = models.SlugField(null=False)
parent = models.ForeignKey('self', blank=True, null=True,
3 matches
Mail list logo