# Create your models here.
class Event(models.Model):
- name = models.CharField(maxlength=50)
- title = models.CharField(maxlength=100)
+ name = models.CharField(max_length=50)
+ title = models.CharField(max_length=100)
slots = models.IntegerField()
def __str__(self):
)
class Person(models.Model):
- first_name = models.CharField(maxlength=255)
- last_name = models.CharField(maxlength=255)
+ first_name = models.CharField(max_length=255)
+ last_name = models.CharField(max_length=255)
def __str__(self):
return self.first_name + ' ' + self.last_name
# Create your models here.
class Character(EEObject):
- name = models.CharField(maxlength=255)
+ name = models.CharField(max_length=255)
def __str__(self):
return self.name
pass
class Influence(EEObject):
- contact = models.CharField(maxlength=255)
+ contact = models.CharField(max_length=255)
character = models.ForeignKey(Character, edit_inline=models.TABULAR, num_in_admin=3, core=True)
description = models.TextField()