Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. from annotation.models import Task
  2. def is_applicable(task):
  3. t = Task.objects.get(id=task['task_id'])
  4. completed = t.submission_set.count() > 0
  5. return completed
  6.  
  7. def change_data(task):
  8. return task
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement