Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/p/o/portfoliyo-HEAD/portfoliyo/view/village/views.py   portfoliyo(Download)
            'group': group,
            'student': rel.student,
            'inviter': model.elder_in_context(rel),
            'elders': model.contextualized_elders(
                rel.student.elder_relationships).order_by(
    if student_id is not None:
        teacher_rel = get_relationship_or_404(student_id, request.user.profile)
        editor = model.elder_in_context(teacher_rel)
        elder_rel = get_relationship_or_404(student_id, elder)
        elder = model.elder_in_context(elder_rel)

src/p/o/portfoliyo-HEAD/portfoliyo/view/village/forms.py   portfoliyo(Download)
            template_name='sms/invite_elder.txt',
            extra_context={
                'inviter': model.elder_in_context(self.rel),
                'student': self.rel.student,
                },

src/p/o/portfoliyo-HEAD/portfoliyo/tests/view/village/test_forms.py   portfoliyo(Download)
            )
        assert form.is_valid(), dict(form.errors)
        profile = form.save(editor=model.elder_in_context(teacher_rel))
 
        assert profile.phone == '+17894561234'
            )
 
        form = forms.EditFamilyForm(instance=model.elder_in_context(rel))
 
        assert form.initial['role'] == "Math Teacher"