conjunto.models

conjunto.models.AbstractSettings

Bases: SingletonModel

Represents the settings of the application.

This model is meant to be subclassed by your application. Please add application specific settings as needed to this model.

conjunto.models.Page

Bases: Model

Represents a generic page.

This class is an abstract base class that provides common fields and methods for all page subclasses.

conjunto.models.SingletonModel

Bases: Model

Singleton Django Model.

Allow only one instance of the model to be created. To get the instance of the model, use <YourModel>.get_instance().

get_instance() classmethod

Load object from the database.

Failing that, create a new empty (default) instance of the object and return it (without saving it - you have to do that yourself).

Raises:
  • IntegrityError

    if there are more than one objects saved in the databases.

save(*args, **kwargs)

Save object to the database.

Raises:
  • IntegrityError

    if there is already another instance in the database.

conjunto.models.VersionedPage

Bases: Page

Represents a generic page with versioning.

This class is an abstract base class that provides common fields and methods for all page subclasses.