maasserver.models.timestampedmodel

Model base class with creation/update timestamps.

Functions

now() Current database time (as per start of current transaction).

Classes

DateTimeField([verbose_name, name, ...])
DefaultMeta Base class for model Meta classes in the maasserver app.
Model(*args, **kwargs)
TimestampedModel(*args, **kwargs) Abstract base model with creation/update timestamps.
class maasserver.models.timestampedmodel.TimestampedModel(*args, **kwargs)[source]

Bases: django.db.models.base.Model

Abstract base model with creation/update timestamps.

Timestamps are taken from the database transaction clock.

Variables:
  • created – Object’s creation time.
  • updated – Time of object’s latest update.
MAAS logo

MAAS

Metal As A Service.



Related Topics

This Page