from django.db import models
from customers.models import Customer

# Create your models here.
class MyHoliday(models.Model):
    customer=models.ForeignKey(Customer,on_delete=models.CASCADE)#never put on delete
    startdate=models.DateField()
    enddate=models.DateField()
    created=models.DateTimeField(auto_now_add=True)
    updated=models.DateTimeField(auto_now=True)

    class Meta:
        verbose_name='My Plan'


   


c9b78c301a6721b8b16496e6f0eff0418ed53cf0
<mask token>

<mask token>


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


    class Meta:
        verbose_name = 'My Plan'

<mask token>


class MyHoliday(models.Model):
    customer = models.ForeignKey(Customer, on_delete=models.CASCADE)
    startdate = models.DateField()
    enddate = models.DateField()
    created = models.DateTimeField(auto_now_add=True)
    updated = models.DateTimeField(auto_now=True)


    class Meta:
        verbose_name = 'My Plan'

from django.db import models
from customers.models import Customer


class MyHoliday(models.Model):
    customer = models.ForeignKey(Customer, on_delete=models.CASCADE)
    startdate = models.DateField()
    enddate = models.DateField()
    created = models.DateTimeField(auto_now_add=True)
    updated = models.DateTimeField(auto_now=True)


    class Meta:
        verbose_name = 'My Plan'

from django.db import models
from customers.models import Customer

# Create your models here.
class MyHoliday(models.Model):
    customer=models.ForeignKey(Customer,on_delete=models.CASCADE)#never put on delete
    startdate=models.DateField()
    enddate=models.DateField()
    created=models.DateTimeField(auto_now_add=True)
    updated=models.DateTimeField(auto_now=True)

    class Meta:
        verbose_name='My Plan'


   

