Public feed
#601412
from django.db import models
class Child(models.Model):
name = models.CharField(maxlength=20)
birthday = models.DateField()
class Admin:
pass
class Event(models.Model):
date = models.DateField()
place = models.CharField(maxlength=200)
childs = models.ManyToManyField(Child)
note = models.CharField(maxlength=300, null=True)
state_choice = (
('A', 'allowed'),
('F', 'forbiden'),
('Q', 'in question')
)
state = models.CharField(maxlength=1, choices=state_choice)
class Admin:
pass