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

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

src/d/j/django-pgfields-HEAD/tests/improved_repr/models.py   django-pgfields(Download)
class Book(models.Model):
    title = models.CharField(max_length=50)
    year_published = models.IntegerField()
 
 
class Movie(models.Model):
class Publisher(models.Model):
    name = models.CharField(max_length=50)
    books = models.ManyToManyField(Book)
 
 
class Character(models.Model):
class Interview(models.Model):
    subject = models.CharField(max_length=50)
    role = models.CharField(max_length=50)
    movie = models.ForeignKey(Movie)
    on_dvd = models.BooleanField(default=True)

src/d/j/django-pgfields-HEAD/tests/docs/models.py   django-pgfields(Download)
class Hobbit(models.Model):
    name = models.CharField(max_length=50)
    favorite_foods = models.ArrayField(models.CharField(max_length=100))
    created = models.DateTimeField(auto_now_add=True)
    modified = models.DateTimeField(auto_now=True)
 
 
class Elf(models.Model):
class Book(models.Model):
    title = models.CharField(max_length=50)
    author = AuthorField()
    date_published = models.DateField()
 

src/d/j/django-pgfields-HEAD/tests/related/models.py   django-pgfields(Download)
class Game(models.Model):
    label = models.CharField(max_length=100)
    number = models.PositiveIntegerField()
    created = models.DateTimeField(auto_now_add=True)
    modified = models.DateTimeField(auto_now=True)
 
 
class Moogle(models.Model):
class Letter(models.Model):
    game = models.ForeignKey(Game)
    moogle = models.ForeignKey(Moogle)
    addressee = models.CharField(max_length=20)
    sender = models.CharField(max_length=20)

src/d/j/django-pgfields-HEAD/tests/uuidt/tests.py   django-pgfields(Download)
            class Thing(models.Model):
                uuid = models.UUIDField(blank=True)
 
 
class SupportSuite(TestCase):
        class Parent(models.Model):
            id = models.CharField(max_length=20, primary_key=True)
            foo = models.CharField(max_length=50)
 
        class Child(Parent):
        class ParentII(models.Model):
            foo = models.CharField(max_length=50)
 
        class ChildII(ParentII):
            bar = models.CharField(max_length=50)

src/d/j/django-pgfields-HEAD/tests/uuidt/models.py   django-pgfields(Download)
    class Movie(models.Model):
        id = models.UUIDField(auto_add=True, primary_key=True)
        title = models.CharField(max_length=50)
 
    class SomethingElse(models.Model):
        title = models.CharField(max_length=50)
 
 
class Game(models.Model):
class Book(models.Model):
    title = models.CharField(max_length=50)
    uuid = models.UUIDField(null=True)
 

src/d/j/django-pgfields-HEAD/tests/south_migrations/models.py   django-pgfields(Download)
    class Author(models.Model):
        name = models.CharField(max_length=75)
        uuid = models.UUIDField(null=True)
        books = models.ArrayField(of=BookField)
        data = models.JSONField(default=None)

src/d/j/django-pgfields-HEAD/tests/managers/tests.py   django-pgfields(Download)
        class Foo1(models.Model):
            objects = select_manager()
            bar = models.IntegerField()
        self.assertIsInstance(Foo1.objects, models.Manager)
 
    @override_settings(DJANGOPG_DEFAULT_MANAGER=models.Manager)
    def test_base_manager_obj(self):
        class Foo2(models.Model):
        class Foo3(models.Model):
            objects = select_manager()
            bar = models.IntegerField()
        self.assertIsInstance(Foo3.objects, models.GeoManager)
 
    @skipIf(not gis_backend, 'GIS disabled.')
    def test_geo_manager_obj(self):
        with self.settings(DJANGOPG_DEFAULT_MANAGER=models.GeoManager):
            class Foo4(models.Model):
            class Foo(models.Model):
                objects = select_manager()
                bar = models.IntegerField()
 
    @override_settings(DJANGOPG_DEFAULT_MANAGER='bogus.Manager')

src/d/j/django-pgfields-HEAD/tests/jsont/models.py   django-pgfields(Download)
class Song(models.Model):
    title = models.CharField(max_length=50)
    data = models.JSONField()
    sample_lines = models.JSONField(type=list)
    stuff = models.JSONField(default=None)

src/d/j/django-pgfields-HEAD/tests/gis/models.py   django-pgfields(Download)
    class Place(models.Model):
        name = models.CharField(max_length=50)
        books = models.ArrayField(of=models.CharField(max_length=100))
        bounds = models.PolygonField()
 

src/d/j/django-pgfields-HEAD/tests/composite/models.py   django-pgfields(Download)
class Monarchy(models.Model):
    name = models.CharField(max_length=100)
    ruler = fields.MonarchField()
 
 
class Author(models.Model):
class Character(models.Model):
    name = models.CharField(max_length=50)
    items = models.ArrayField(of=fields.ItemField)
 

  1 | 2  Next