Skip to content
Snippets Groups Projects
Verified Commit 69e7be83 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Extend Person model from core with lessons_as_participant property.

Advances #34, #41.
parent 3f6a6994
No related branches found
No related tags found
No related merge requests found
from biscuit.core.models import Person
from .models import Lesson
@Person.property
def lessons_as_participant(self):
return Lesson.objects.filter(groups__member=self)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment