Did I find the right examples for you? yes no

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

src/d/j/django-user-tags-1.1/user_tags/forms.py   django-user-tags(Download)
            qs_kwargs.update({'user': user, })
        try:
            tag_group = UserTagGroup.objects.get(**qs_kwargs)
        except UserTagGroup.DoesNotExist:
            tag_group = None
    def save_tags(self, user, tagged_item, tag_field, with_user, tag_data):
        try:
            group = UserTagGroup.objects.get(name=tag_field)
        except UserTagGroup.DoesNotExist:
            the_user = None

src/d/j/django-user-tags-1.1/user_tags/tests/forms_tests.py   django-user-tags(Download)
        instance = form.save()
 
        tag_group = UserTagGroup.objects.get(name='tags')
        user_tags = UserTag.objects.filter(user_tag_group=tag_group)
        self.assertEqual(user_tags.count(), 3)
 
        global_tag_group = UserTagGroup.objects.get(name='global_tags')
        form = DummyModelForm(self.user, data=self.data)
        form.save()
        global_tag_group = UserTagGroup.objects.get(name='global_tags')
        self.assertEqual(global_tag_group.user, None)