from django.db import models

import caching.base


# Our apps should subclass ManagerBase instead of models.Manager or
# caching.base.CachingManager directly.
ManagerBase = caching.base.CachingManager


class ModelBase(caching.base.CachingMixin, models.Model):
    """
    Base class for doozer models to abstract some common features.

    * Caching.
    """

    objects = ManagerBase()
    uncached = models.Manager()

    class Meta:
        abstract = True


class TimestampMixin(models.Model):
    """Mixin to add created and updated fields."""
    created = models.DateTimeField(db_index=True, auto_now_add=True)
    updated = models.DateTimeField(db_index=True, auto_now=True)

    class Meta(object):
        abstract = True

acedada367c6aeb6dc9b693a19b043a63b3d77e7
<mask token>


class ModelBase(caching.base.CachingMixin, models.Model):
    <mask token>
    objects = ManagerBase()
    uncached = models.Manager()


    class Meta:
        abstract = True


class TimestampMixin(models.Model):
    """Mixin to add created and updated fields."""
    created = models.DateTimeField(db_index=True, auto_now_add=True)
    updated = models.DateTimeField(db_index=True, auto_now=True)


    class Meta(object):
        abstract = True

<mask token>


class ModelBase(caching.base.CachingMixin, models.Model):
    """
    Base class for doozer models to abstract some common features.

    * Caching.
    """
    objects = ManagerBase()
    uncached = models.Manager()


    class Meta:
        abstract = True


class TimestampMixin(models.Model):
    """Mixin to add created and updated fields."""
    created = models.DateTimeField(db_index=True, auto_now_add=True)
    updated = models.DateTimeField(db_index=True, auto_now=True)


    class Meta(object):
        abstract = True

<mask token>
ManagerBase = caching.base.CachingManager


class ModelBase(caching.base.CachingMixin, models.Model):
    """
    Base class for doozer models to abstract some common features.

    * Caching.
    """
    objects = ManagerBase()
    uncached = models.Manager()


    class Meta:
        abstract = True


class TimestampMixin(models.Model):
    """Mixin to add created and updated fields."""
    created = models.DateTimeField(db_index=True, auto_now_add=True)
    updated = models.DateTimeField(db_index=True, auto_now=True)


    class Meta(object):
        abstract = True

from django.db import models
import caching.base
ManagerBase = caching.base.CachingManager


class ModelBase(caching.base.CachingMixin, models.Model):
    """
    Base class for doozer models to abstract some common features.

    * Caching.
    """
    objects = ManagerBase()
    uncached = models.Manager()


    class Meta:
        abstract = True


class TimestampMixin(models.Model):
    """Mixin to add created and updated fields."""
    created = models.DateTimeField(db_index=True, auto_now_add=True)
    updated = models.DateTimeField(db_index=True, auto_now=True)


    class Meta(object):
        abstract = True

from django.db import models

import caching.base


# Our apps should subclass ManagerBase instead of models.Manager or
# caching.base.CachingManager directly.
ManagerBase = caching.base.CachingManager


class ModelBase(caching.base.CachingMixin, models.Model):
    """
    Base class for doozer models to abstract some common features.

    * Caching.
    """

    objects = ManagerBase()
    uncached = models.Manager()

    class Meta:
        abstract = True


class TimestampMixin(models.Model):
    """Mixin to add created and updated fields."""
    created = models.DateTimeField(db_index=True, auto_now_add=True)
    updated = models.DateTimeField(db_index=True, auto_now=True)

    class Meta(object):
        abstract = True
