Django
23
Вклад в тег
class Category(models.Model):
parent = models.ForeignKey('self', null=True)
title = models.CharField(...)
class Product(models.Model):
title = models.CharField(...)
parent = models.ManyToManyField('self', null=True)
# in class Category
is_best = models.Boolean(default=False)
pip freeze > requirements.txt
Django==1.10
django-cors-middleware==1.3.0
djangorestframework==3.4.5
djangorestframework-jsonapi==2.1.0
inflection==0.3.1
...