petition-sonnette/petition/models.py

10 lines
215 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):
name = models.CharField(max_length=255)
mail = models.EmailField()
def __str__(self):
return "{} <{}>".format(self.name, self.mail)