* Replace maxlength argument to CharField with max_length. Makes the project work...
[matthijs/projects/xerxes.git] / influences / models.py
1 from django.db import models
2 from ee.base.models import EEObject
3
4 # Create your models here.
5 class Character(EEObject):
6         name = models.CharField(max_length=255)
7         def __str__(self):
8                 return self.name
9
10         class Admin:
11                 pass
12
13 class Influence(EEObject):
14         contact     = models.CharField(max_length=255)
15         character   = models.ForeignKey(Character, edit_inline=models.TABULAR, num_in_admin=3, core=True)
16         description = models.TextField()
17
18         def __str__(self):
19                 return self.description[0:10]
20
21         class Admin:
22                 pass