projects
/
cascardo
/
ema.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
adding a new feature, now you need to say which content
[cascardo/ema.git]
/
contents
/
models.py
diff --git
a/contents/models.py
b/contents/models.py
index
e111b2f
..
78c760f
100644
(file)
--- a/
contents/models.py
+++ b/
contents/models.py
@@
-27,3
+27,12
@@
class Menu(models.Model):
def __str__(self):
return self.title
+
+class Index(models.Model):
+ entry = models.ForeignKey(Entry)
+
+ class Admin:
+ pass
+
+ def __str__(self):
+ return self.entry.title