Skip to content

Instantly share code, notes, and snippets.

@chussenot
Created May 18, 2018 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chussenot/6e29a80dd82b4ae92805a40f26c55475 to your computer and use it in GitHub Desktop.
Save chussenot/6e29a80dd82b4ae92805a40f26c55475 to your computer and use it in GitHub Desktop.
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