petition-sonnette/petition/models.py

13 lines
355 B
Python
Raw Normal View History

2018-02-05 21:36:12 +01:00
from django.db import models
2018-02-05 21:39:09 +01:00
class Signature(models.Model):
2018-02-05 22:16:32 +01:00
name = models.CharField('Nom complet',
max_length=255,
unique=True)
mail = models.EmailField('Adresse mail',
unique=True)
2018-02-05 21:39:09 +01:00
def __str__(self):
return "{} <{}>".format(self.name, self.mail)