projects
/
matthijs
/
projects
/
xerxes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Show the currently logged in user and a logout link on the login page.
[matthijs/projects/xerxes.git]
/
influences
/
models.py
diff --git
a/influences/models.py
b/influences/models.py
index bda1dc56b1bcd943a8faca2287c97919e7e22555..d5db8a39b5cfc598f65df9d1f7e939f9aa54fc38 100644
(file)
--- a/
influences/models.py
+++ b/
influences/models.py
@@
-1,17
+1,20
@@
from django.db import models
from django.db import models
-from ee.base.models import EEObject
# Create your models here.
# Create your models here.
-class Character(EEObject):
- name = models.CharField(maxlength=255)
+class Character(models.Model):
+ created = models.DateField(auto_now_add=1)
+ modified = models.DateField(auto_now=1)
+ name = models.CharField(max_length=255)
def __str__(self):
return self.name
class Admin:
pass
def __str__(self):
return self.name
class Admin:
pass
-class Influence(EEObject):
- contact = models.CharField(maxlength=255)
+class Influence(models.Model):
+ created = models.DateField(auto_now_add=1)
+ modified = models.DateField(auto_now=1)
+ contact = models.CharField(max_length=255)
character = models.ForeignKey(Character, edit_inline=models.TABULAR, num_in_admin=3, core=True)
description = models.TextField()
character = models.ForeignKey(Character, edit_inline=models.TABULAR, num_in_admin=3, core=True)
description = models.TextField()