Public feed #601412

Something

public text v1 · immutable
Raw Edit
·published 2007-07-03 14:23 UTC
rendered paste body
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