Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Tasks(models.Model):
- # Use AutoField as primary key
- taskid = models.AutoField(primary_key=True)
- name = models.CharField(max_length=45)
- description = models.CharField(max_length=200, null=True, blank=True)
- is_custom = models.BooleanField(default=False)
- task_created = models.DateTimeField(auto_now_add=True)
- def __str__(self):
- return f'{self.name} - Description: {self.description}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement