models

Utility Model classes based on models.Model

class bits.models.BaseModel(*args, **kwargs)[source]

Abstract base class with auto-populated created and updated fields.

functions

bits.models.usetz_now()[source]

Determine current time depending on USE_TZ setting.

Affects Django 1.4 and above only. if USE_TZ = True, then returns current time according to timezone, else returns current UTC time.

Project Versions

Table Of Contents

Previous topic

general

Next topic

gis

This Page