Models¶
-
class
django_decadence.models.
DecadenceModel
(*args, **kwargs)¶ Implements a generic model that supports Decadence-specific features like serialization.
-
push_update
(original_data={})¶ Compares changes between old serialization data and new, then pushes out updates through Updates API.
-
serialize
(user=None, fields=None)¶ Attempts to generate a JSON serializable dictionary based on current model
-
updates_excluded
= []¶ list of fields excluded from updates
-
-
class
django_decadence.models.
SerializableQuerySet
(model=None, query=None, using=None, hints=None)¶ QuerySet extended with Decadence serialization method