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

All Samples(17)  |  Call(16)  |  Derive(0)  |  Import(1)

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)
        ('f', 'Female'),
    ))
    created = models.DateTimeField(auto_now_add=True)
    modified = models.DateTimeField(auto_now=True)
 
    sender = models.CharField(max_length=20)
    body = models.TextField()
    created = models.DateTimeField(auto_now_add=True)
    modified = models.DateTimeField(auto_now=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):
    id = models.UUIDField(auto_add=True, primary_key=True)
    name = models.CharField(max_length=50)
    created = models.DateTimeField(auto_now_add=True)
    modified = models.DateTimeField(auto_now=True)

src/d/j/django-pgfields-HEAD/tests/south_migrations/models.py   django-pgfields(Download)
        books = models.ArrayField(of=BookField)
        data = models.JSONField(default=None)
        created = models.DateTimeField(auto_now_add=True)
        modified = models.DateTimeField(auto_now=True)
 

src/d/j/django-pgfields-HEAD/tests/datetimes/tests.py   django-pgfields(Download)
from __future__ import absolute_import, unicode_literals
from datetime import datetime
from django.db import models
from django.test.utils import override_settings
from django_pg.models import DateTimeField
        we expect.
        """
        dtf = DateTimeField()
        answer = dtf.to_python(1335024000)
        self.assertEqual(answer, datetime(2012, 4, 21, 16, tzinfo=pytz.UTC))
        we expect.
        """
        dtf = DateTimeField()
        answer = dtf.to_python(1335024000)
        self.assertEqual(answer, datetime(2012, 4, 21, 16))
    def test_passthrough(self):
        """Establish that we pass through non-integer values as
        expected.
        """
        dtf = DateTimeField()
    def test_get_prep_value(self):
        """Establish that the `to_python` method is called by
        `get_prep_value`.
        """
        dtf = DateTimeField()