Ticket #1796: models.py

File models.py, 182 bytes (added by curtis.thompson@…, 18 years ago)

Simple Model

Line 
1from django.db import models
2
3# Create your models here.
4
5class mymodel(models.Model):
6 name = models.CharField(maxlength=40)
7 submodel = models.ManyToManyField("self")
Back to Top