2009-05-13 05:13:38 +01:00
|
|
|
from django.db import models
|
|
|
|
|
|
|
|
class SurvexBlock(models.Model):
|
2009-05-13 05:13:51 +01:00
|
|
|
name = models.CharField(max_length=100, blank=True, null=True)
|
|
|
|
parent = models.ForeignKey('SurvexBlock', blank=True, null=True)
|
2009-05-13 05:13:38 +01:00
|
|
|
text = models.TextField()
|
2009-05-13 05:13:51 +01:00
|
|
|
notes_person = models.ManyToManyField('PersonTrip', related_name="notes", blank=True, null=True)
|
|
|
|
pics_person = models.ManyToManyField('PersonTrip', related_name="pics", blank=True, null=True)
|
|
|
|
tape_person = models.ManyToManyField('PersonTrip', related_name="tape", blank=True, null=True)
|
|
|
|
insts_person = models.ManyToManyField('PersonTrip', related_name="insts", blank=True, null=True)
|
2009-05-13 05:13:38 +01:00
|
|
|
begin_file = models.CharField(max_length=200)
|
|
|
|
begin_char = models.IntegerField()
|
2009-05-13 05:13:51 +01:00
|
|
|
end_file = models.CharField(max_length=200, blank=True, null=True)
|
|
|
|
end_char = models.IntegerField(blank=True, null=True)
|
2009-05-13 05:13:38 +01:00
|
|
|
def __unicode__(self):
|
2009-05-13 05:13:51 +01:00
|
|
|
return unicode(self.name)
|