villafleurie/rental/models/guest.py
Ruidy 780188e7d6
Refactor (#7)
* crete setting module to split prod and dev configs

* fix calendar midmatch

* lint imports using isort

* doc: add doctrings
2020-07-31 08:02:10 +02:00

14 lines
353 B
Python

from django.db import models
class Guest(models.Model):
""" Guest summarizes customer information. """
class Meta:
verbose_name = "Voyageur"
def __str__(self):
return self.name
name = models.CharField(max_length=100)
email = models.EmailField(unique=False)
phone = models.CharField(max_length=30, blank=True)