fixed typo and added group tests

This commit is contained in:
Ilan
2015-07-19 13:56:16 +02:00
parent ff102630f7
commit e75fbecda8
2 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class Task(models.Model):
group = Task.objects.filter(group=group_id)
if objects:
return group.delete()
return group.update(group_id=None)
return group.update(group=None)
@staticmethod
def get_task(task_id):