dynamicweb/digitalglarus/models.py
Nico Schottelius da0ece6d63 digital_glarus -> digitalglarus
Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
2015-06-10 23:34:33 +02:00

14 lines
407 B
Python

from django.db import models
# Create your models here.
class Message(models.Model):
name = models.CharField(max_length=200)
email = models.EmailField()
phone_number = models.CharField(max_length=200)
message = models.TextField()
received_date = models.DateTimeField('date received')
def __str__(self):
return "%s - %s - %s" % (self.name, self.email, self.received_date)