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

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

src/d/j/django-feedbrater-0.9.6/feeds/update.py   django-feedbrater(Download)
                    if not Tag.objects.filter(name=tagname):
                        cobj = Tag(name=tagname)
                        cobj.save()
                    fcat.append(Tag.objects.get(name=tagname))
        return fcat
                    if not Tag.objects.filter(name=tagname):
                        cobj = Tag(name=tagname)
                        cobj.save()
                    fcat.append(Tag.objects.get(name=tagname))
        return fcat

src/d/j/django-feedbrater-0.9.6/feeds/tests.py   django-feedbrater(Download)
        from feeds.models import Tag
        t = Tag(name="tag")
        tagid = t.save()
        self.assertNotEqual(tagid, 0)
        self.assertEqual(str(t), "tag")