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

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

src/d/j/django-orm-2.0.5/django_orm/postgresql/fields/interval.py   django-orm(Download)
from datetime import timedelta
 
from django_orm.postgresql.constants import INTERVAL_LOOKUPS
 
class IntervalField(models.Field):
            return value._prepare()
 
        if lookup_type in INTERVAL_LOOKUPS:
            return self.get_prep_value(value)
        raise TypeError("Field has invalid lookup: %s" % lookup_type)