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

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

src/d/j/django-pgfields-HEAD/tests/arrays/tests.py   django-pgfields(Download)
    def setUp(self):
        """Create objects in the database, effectively establishing
        that we can save items.
        """
        Place.objects.create(name='Rivendell', residents=['Elrond'])
        Place.objects.create(name='Gondor', residents=['Aragorn', 'Denethor'])
        Place.objects.create(name='The Shire', residents=[
            'Peregrin Took', 'Merridoc Brandybuck',
        ])
        Place.objects.create(name='Rohan', residents=[
            'Theoden', 'Eomer', 'Eowyn',
        ])
        Place.objects.create(name='Mordor', residents=[])