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

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

src/p/o/portfoliyo-HEAD/portfoliyo/view/village/forms.py   portfoliyo(Download)
 
        rel, created = model.Relationship.objects.get_or_create(
            from_profile=self.instance,
            to_profile=self.rel.student,
            defaults={
        for student in self.cleaned_data['students']:
            rel, created = model.Relationship.objects.get_or_create(
                from_profile=profile,
                to_profile=student,
                defaults={
        for elder in add:
            rel, created = model.Relationship.objects.get_or_create(
                to_profile=student,
                from_profile=elder,
                )

src/p/o/portfoliyo-HEAD/portfoliyo/sms/hook.py   portfoliyo(Download)
    if student:
        rel, created = model.Relationship.objects.get_or_create(
            from_profile=teacher,
            to_profile=student,
            defaults={'level': model.Relationship.LEVEL.owner},