apps.core package

Submodules

apps.core.apps module

class apps.core.apps.CoreConfig(app_name, app_module)

Bases: django.apps.config.AppConfig

name = u'core'

apps.core.models module

class apps.core.models.AbstractBaseModel(*args, **kwargs)

Bases: django.db.models.base.Model

Base db model with most used fields.

:uuid UUIDField, defines a unique instance uuid version 4.

:created_at DateTimeField, defines instance creation date.

:updated_at DateTimeField, defines instance updating date.

Example:

from django.db import models
from apps.core.model import AbstractBaseModel

class MyNewModel(AbstractBaseModel):
    name = models.CharField(max_length=255)
class Meta
abstract = False
created_at

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

get_next_by_created_at(*moreargs, **morekwargs)
get_next_by_updated_at(*moreargs, **morekwargs)
get_previous_by_created_at(*moreargs, **morekwargs)
get_previous_by_updated_at(*moreargs, **morekwargs)
updated_at

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

uuid

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

apps.core.tests.test_models module

class apps.core.tests.test_models.AbstractBaseModelTestCase(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_is_abstract()

Module contents