# HG changeset patch # User Daniel Hans # Date 1257711074 28800 # Node ID da8cc38cabe9b1aa73d13a61cf8639b510431d87 # Parent 14077185c46e996125c1280f242d0c4ea895bba0 TaskArbritraryTag now has auto_delete set to True by default. Reviewed by: Lennard de Rijk diff -r 14077185c46e -r da8cc38cabe9 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):