Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from annotation.models import Task
- def is_applicable(task):
- t = Task.objects.get(id=task['task_id'])
- completed = t.submission_set.count() > 0
- return completed
- def change_data(task):
- return task
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement