Jump to >

reviewboard.diffviewer.models.diffset_history

DiffSetHistory model definition.

class DiffSetHistory(*args, **kwargs)[source]

Bases: django.db.models.base.Model

A 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.

__str__()[source]
__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.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

get_extra_data_json()[source]
get_next_by_timestamp(**morekwargs)[source]
get_previous_by_timestamp(**morekwargs)[source]
id[source]

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>[source]
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.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

set_extra_data_json(json)[source]