"""File for Model for Tasks"""
from django.db import models
from django.contrib.auth.models import User


class Tasks(models.Model):
    """Model for Tasks"""

    user = models.ForeignKey(User, on_delete=models.CASCADE)
    category = models.ForeignKey("Categories", on_delete=models.CASCADE)
    create_date_time = models.DateTimeField(auto_now=False, auto_now_add=True)
    title = models.CharField(max_length=50)
    description = models.CharField(max_length=250)
    due_date_time = models.DateTimeField(auto_now=False, auto_now_add=False)

    # Defines the virtual property named by the "related_name" in the Task_Tag model and TaskSerializer

    @property
    def tags(self):
        return self.__tags

    @tags.setter
    def tags(self, value):
        self.__tags = value
    
    
c6952036fb1e20a7fb793e1f308275f24961cd47
<mask token>


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

    @property
    def tags(self):
        return self.__tags
    <mask token>

<mask token>


class Tasks(models.Model):
    <mask token>
    user = models.ForeignKey(User, on_delete=models.CASCADE)
    category = models.ForeignKey('Categories', on_delete=models.CASCADE)
    create_date_time = models.DateTimeField(auto_now=False, auto_now_add=True)
    title = models.CharField(max_length=50)
    description = models.CharField(max_length=250)
    due_date_time = models.DateTimeField(auto_now=False, auto_now_add=False)

    @property
    def tags(self):
        return self.__tags

    @tags.setter
    def tags(self, value):
        self.__tags = value

<mask token>


class Tasks(models.Model):
    """Model for Tasks"""
    user = models.ForeignKey(User, on_delete=models.CASCADE)
    category = models.ForeignKey('Categories', on_delete=models.CASCADE)
    create_date_time = models.DateTimeField(auto_now=False, auto_now_add=True)
    title = models.CharField(max_length=50)
    description = models.CharField(max_length=250)
    due_date_time = models.DateTimeField(auto_now=False, auto_now_add=False)

    @property
    def tags(self):
        return self.__tags

    @tags.setter
    def tags(self, value):
        self.__tags = value

<mask token>
from django.db import models
from django.contrib.auth.models import User


class Tasks(models.Model):
    """Model for Tasks"""
    user = models.ForeignKey(User, on_delete=models.CASCADE)
    category = models.ForeignKey('Categories', on_delete=models.CASCADE)
    create_date_time = models.DateTimeField(auto_now=False, auto_now_add=True)
    title = models.CharField(max_length=50)
    description = models.CharField(max_length=250)
    due_date_time = models.DateTimeField(auto_now=False, auto_now_add=False)

    @property
    def tags(self):
        return self.__tags

    @tags.setter
    def tags(self, value):
        self.__tags = value

"""File for Model for Tasks"""
from django.db import models
from django.contrib.auth.models import User


class Tasks(models.Model):
    """Model for Tasks"""

    user = models.ForeignKey(User, on_delete=models.CASCADE)
    category = models.ForeignKey("Categories", on_delete=models.CASCADE)
    create_date_time = models.DateTimeField(auto_now=False, auto_now_add=True)
    title = models.CharField(max_length=50)
    description = models.CharField(max_length=250)
    due_date_time = models.DateTimeField(auto_now=False, auto_now_add=False)

    # Defines the virtual property named by the "related_name" in the Task_Tag model and TaskSerializer

    @property
    def tags(self):
        return self.__tags

    @tags.setter
    def tags(self, value):
        self.__tags = value
    
    