Created
May 18, 2018 10:47
-
-
Save chussenot/6e29a80dd82b4ae92805a40f26c55475 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
class Entry(models.Model): | |
name = models.CharField(max_length=20) | |
date = models.DateTimeField() | |
description = models.TextField() | |
created = models.DateTimeField(auto_now_add=True) | |
Sante = models.BooleanField(default=False) | |
Environnement = models.BooleanField(default=False) | |
Travail = models.BooleanField(default=False) | |
Solidarite = models.BooleanField(default=False) | |
def __str__(self): | |
return f'{self.name} {self.date}' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment