adminjournal.models module¶
-
class
adminjournal.models.
Entry
(id, timestamp, action, user, user_repr, content_type, content_type_repr, object_id, description, payload)[source]¶ Bases:
django.db.models.base.Model
-
timestamp
[source]¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
action
[source]¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
user
[source]¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
user_repr
[source]¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
content_type
[source]¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
content_type_repr
[source]¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
object_id
[source]¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
description
[source]¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
payload
[source]¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
content_type_id
[source]¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_next_by_timestamp
(*, field=<django.db.models.fields.DateTimeField: timestamp>, is_next=True, **kwargs)[source]¶
-
get_previous_by_timestamp
(*, field=<django.db.models.fields.DateTimeField: timestamp>, is_next=False, **kwargs)[source]¶
-