Super-simple comment display.
[zzz-floof.git] / floof / model / art.py
index 1bde59b..451383b 100644 (file)
@@ -12,6 +12,7 @@ from pylons import config
 
 from floof.lib.file_storage import get_path, save_file
 from floof.lib.dbhelpers import find_or_create, update_or_create
+import floof.model.comments
 
 class Art(Entity):
     title = Field(Unicode(120))
@@ -20,6 +21,7 @@ class Art(Entity):
 
     uploader = ManyToOne('User', required=True)
     tags = OneToMany('Tag')
+    discussion = ManyToOne('Discussion')
 
     # def __init__(self, **kwargs):
     #     # I wanted to check for the existence of the file, but...
@@ -119,4 +121,4 @@ class Rating(Entity):
     # options = ["sucks","neutral","good","great"]
 
 
-Rating.reverse_options = dict (zip(Rating.options.values(), Rating.options.keys()))
\ No newline at end of file
+Rating.reverse_options = dict (zip(Rating.options.values(), Rating.options.keys()))