from django.db import models
from django.urls import reverse

class Product(models.Model):
	title 		= models.CharField(max_length=120)
	description = models.TextField(blank=True,null=True)
	price 		= models.DecimalField(decimal_places=2,max_digits=10000)
	summary		= models.TextField()
	featured    = models.BooleanField(default=False)

	def get_absolute_url(self):
		return reverse("products:product-detail",kwargs={"my_id":self.id})

dee586fd59a0840fd2a1bc0ac585b312b9d3824f
<mask token>


class Product(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Product(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def get_absolute_url(self):
        return reverse('products:product-detail', kwargs={'my_id': self.id})

<mask token>


class Product(models.Model):
    title = models.CharField(max_length=120)
    description = models.TextField(blank=True, null=True)
    price = models.DecimalField(decimal_places=2, max_digits=10000)
    summary = models.TextField()
    featured = models.BooleanField(default=False)

    def get_absolute_url(self):
        return reverse('products:product-detail', kwargs={'my_id': self.id})

from django.db import models
from django.urls import reverse


class Product(models.Model):
    title = models.CharField(max_length=120)
    description = models.TextField(blank=True, null=True)
    price = models.DecimalField(decimal_places=2, max_digits=10000)
    summary = models.TextField()
    featured = models.BooleanField(default=False)

    def get_absolute_url(self):
        return reverse('products:product-detail', kwargs={'my_id': self.id})

from django.db import models
from django.urls import reverse

class Product(models.Model):
	title 		= models.CharField(max_length=120)
	description = models.TextField(blank=True,null=True)
	price 		= models.DecimalField(decimal_places=2,max_digits=10000)
	summary		= models.TextField()
	featured    = models.BooleanField(default=False)

	def get_absolute_url(self):
		return reverse("products:product-detail",kwargs={"my_id":self.id})
