reviewboard.diffviewer.models.diffset_history¶
DiffSetHistory model definition.
-
class
DiffSetHistory(*args, **kwargs)[source]¶ Bases:
django.db.models.base.ModelA collection of diffsets.
This gives us a way to store and keep track of multiple revisions of diffsets belonging to an object.
-
name[source]¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
timestamp[source]¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
last_diff_updated[source]¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
extra_data[source]¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
__unicode__()[source]¶ Return a human-readable representation of the model.
Returns: A human-readable representation of the model. Return type: unicode
-
diffsets[source]¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
id[source]¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
review_request[source]¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-