Models

class thecut.authorship.models.Authorship(*args, **kwargs)[source]

Abstract model to track when an instance was created/updated and by whom.

created_at = None

datetime for when this object was first created.

created_by

User who first created this object (required).

save(user=None, **kwargs)[source]

A custom Model.save() method that appropriately populates authorship fields.

updated_at = None

datetime for when this object was last saved.

updated_by

User who last saved this object (required).