from django.db import models
from wagtail.wagtailcore.fields import RichTextField
from longclaw.longclawproducts.models import ProductVariantBase

class ProductVariant(ProductVariantBase):

    # Enter your custom product variant fields here
    # e.g. colour, size, stock and so on.
    # Remember, ProductVariantBase provides 'price', 'ref', 'slug' fields
    # and the parental key to the Product model.
    description = RichTextField()
    stock = models.IntegerField(default=0)

from django.db import models
from wagtail.wagtailcore.fields import RichTextField
from longclaw.longclawproducts.models import ProductVariantBase

class ProductVariant(ProductVariantBase):

    # Enter your custom product variant fields here
    # e.g. colour, size, stock and so on.
    # Remember, ProductVariantBase provides 'price', 'ref', 'slug' fields
    # and the parental key to the Product model.
    description = RichTextField()

Remove 'stock' field from template products
Remove 'stock' field from template products

  from django.db import models
  from wagtail.wagtailcore.fields import RichTextField
  from longclaw.longclawproducts.models import ProductVariantBase
  
  class ProductVariant(ProductVariantBase):
  
      # Enter your custom product variant fields here
      # e.g. colour, size, stock and so on.
      # Remember, ProductVariantBase provides 'price', 'ref', 'slug' fields
      # and the parental key to the Product model.
      description = RichTextField()
-     stock = models.IntegerField(default=0)
  
Remove 'stock' field from template products
## Code Before:
from django.db import models
from wagtail.wagtailcore.fields import RichTextField
from longclaw.longclawproducts.models import ProductVariantBase

class ProductVariant(ProductVariantBase):

    # Enter your custom product variant fields here
    # e.g. colour, size, stock and so on.
    # Remember, ProductVariantBase provides 'price', 'ref', 'slug' fields
    # and the parental key to the Product model.
    description = RichTextField()
    stock = models.IntegerField(default=0)

## Instruction:
Remove 'stock' field from template products
## Code After:
from django.db import models
from wagtail.wagtailcore.fields import RichTextField
from longclaw.longclawproducts.models import ProductVariantBase

class ProductVariant(ProductVariantBase):

    # Enter your custom product variant fields here
    # e.g. colour, size, stock and so on.
    # Remember, ProductVariantBase provides 'price', 'ref', 'slug' fields
    # and the parental key to the Product model.
    description = RichTextField()
