forked from expo/troggle
b503d3d588
This is a development site using Django 1.0 Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8034 by julian @ 10/26/2008 9:04 PM
16 lines
690 B
Python
16 lines
690 B
Python
from django.db import models
|
|
|
|
class SurvexBlock(models.Model):
|
|
name = models.CharField(max_length=100)
|
|
text = models.TextField()
|
|
notes_person = models.ManyToManyField('PersonTrip', related_name="notes")
|
|
pics_person = models.ManyToManyField('PersonTrip', related_name="pics")
|
|
tape_person = models.ManyToManyField('PersonTrip', related_name="tape")
|
|
insts_person = models.ManyToManyField('PersonTrip', related_name="insts")
|
|
begin_file = models.CharField(max_length=200)
|
|
begin_char = models.IntegerField()
|
|
end_file = models.CharField(max_length=200)
|
|
end_char = models.IntegerField()
|
|
def __unicode__(self):
|
|
return unicode(name)
|