repo_description: Learn Django bit by bit in this series
repo_topics: django django2 learn python python3 python36 tutorial
code: from django.db import models
  from django.urls import reverse
  # Create your models here.
  class Product(models.Model):
      title       = models.CharField(max_length=120) # max_length = required
      description = models.TextField(blank=True, null=True)
      price       = models.DecimalField(decimal_places=2, max_digits=10000)
      summary     = models.TextField(blank=False, null=False)
      featured    = models.BooleanField(default=False) # null=True, default=True
  
      def get_absolute_url(self):
          return reverse("products:product-detail", kwargs={"id": self.id}) #f"/products/{self.id}/"