TaskArbritraryTag now has auto_delete set to True by default.
authorDaniel Hans <daniel.m.hans@gmail.com>
Sun, 08 Nov 2009 12:11:14 -0800
changeset 3082 da8cc38cabe9
parent 3081 14077185c46e
child 3083 f384c0a42920
TaskArbritraryTag now has auto_delete set to True by default. Reviewed by: Lennard de Rijk
app/soc/modules/ghop/models/task.py
--- a/app/soc/modules/ghop/models/task.py	Sun Nov 08 12:08:05 2009 -0800
+++ b/app/soc/modules/ghop/models/task.py	Sun Nov 08 12:11:14 2009 -0800
@@ -42,7 +42,7 @@
 class TaskTag(Tag):
   """Model for storing all Task tags.
   """
-  
+
   #: Each task_type tag is scoped under the program. 
   scope = db.ReferenceProperty(reference_class=soc.models.linkable.Linkable,
                                required=True,
@@ -180,7 +180,12 @@
   """Model for storing of arbitrary tags.
   """
 
-  pass
+  def __init__(self, *args, **kwds):
+    """Initialization function.
+    """
+
+    TaskTag.__init__(self, *args, **kwds)
+    self.auto_delete = True
 
 
 class GHOPTask(Taggable, soc.models.linkable.Linkable):