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

All Samples(16)  |  Call(0)  |  Derive(14)  |  Import(2)

src/d/j/django-patterns-0.0.3/django_patterns/db/models/mixins/uuid_stamped_test/models.py   django-patterns(Download)
 
# Django-patterns, object relational mapper mixins
from django_patterns.db.models.mixins import UUIDStampedMixin
 
class UUIDStampedModel(UUIDStampedMixin):

src/d/j/django-patterns-0.0.3/django_patterns/db/models/mixins/positional_order_test/models.py   django-patterns(Download)
 
# Django-patterns, positional-order mixin
from django_patterns.db.models.mixins import PositionalOrderMixin, \
  UUIDPrimaryKeyMixin, UUIDStampedMixin
 
class SimplePositionalOrderModel(PositionalOrderMixin, UUIDStampedMixin):
class SimplePositionalOrderWithEmptyTupleModel(PositionalOrderMixin, UUIDStampedMixin):
  """A model nearly identical to SimplePositionalOrderModel, testing that if
  `order_with_respect_to = ()` is specified, the behavior is the same."""
  class Meta(object):
    order_with_respect_to = ()
 
class SimplePositionalOrderWithSelfModel(PositionalOrderMixin, UUIDStampedMixin):
class OneToOnePositionalOrderModel(PositionalOrderMixin, UUIDStampedMixin):
  """Tests a model using positional order with respect to a OneToOneField (not
  a common occurrence, but officially supported nonetheless)."""
  other = OneToOneField(RelatedKeyModel)
  class Meta(object):