projects
/
oweals
/
karmaworld.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6af41e0
)
adding Couse fkey to Note model
author
Seth Woodworth
<seth@sethish.com>
Mon, 7 Jan 2013 20:44:56 +0000
(15:44 -0500)
committer
Seth Woodworth
<seth@sethish.com>
Mon, 7 Jan 2013 20:44:56 +0000
(15:44 -0500)
karmaworld/apps/notes/models.py
patch
|
blob
|
history
diff --git
a/karmaworld/apps/notes/models.py
b/karmaworld/apps/notes/models.py
index 5add6f26007e0fc07cb1bd2a1398414832af3316..74567380d967dcb1d607c18e5affb1e947c5a01f 100644
(file)
--- a/
karmaworld/apps/notes/models.py
+++ b/
karmaworld/apps/notes/models.py
@@
-12,6
+12,8
@@
import os
from django.db import models
from taggit.managers import TaggableManager
+from karmaworld.apps.courses.models import Course
+
class Note(models.Model):
""" A django model representing an uploaded file and associated metadata.
"""
@@
-23,6
+25,7
@@
class Note(models.Model):
(UNKNOWN_FILE, 'Unknown file'),
)
+ course = models.ForeignKey(Course)
# Tagging system
tags = TaggableManager()