from django.db import models
from django.shortcuts import reverse

# Create your models here.
class Task(models.Model):
    name = models.CharField(max_length=200,blank=True)
    content = models.CharField(max_length=200, blank=True, null=True)
    

    
    class Meta:
        default_permissions = ()
        permissions = ( 
            ("task_create", "Can create task"),
            ("task_edit", "Can edit task"), 
            ("task_delete", "Can delete task"), 
            ("task_view", "Can view task"), 
        )

    def __str__(self):
        return self.name

