reviewboard.diffviewer.models.legacy_file_diff_data¶
LegacyFileDiffData model defitnition.
- class LegacyFileDiffData(*args, **kwargs)[source]¶
Bases:
Model
Deprecated, legacy class for base64-encoded diff data.
This is no longer populated, and exists solely to store legacy data that has not been migrated to
RawFileDiffData
.- binary_hash[source]¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- binary[source]¶
Property-like class used to store/retrieve Base64 values.
This works much like a property, and takes care of encoding strings for storage and decoding them on retrieval. It’s set internally by
Base64Field
in place of the normal field attribute.
- 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.
- __annotations__ = {}¶
- filediffs¶
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 aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- get_binary_base64()¶
- get_extra_data_json()¶
- objects = <django.db.models.manager.Manager object>¶
- parent_filediffs¶
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 aReverseManyToOneDescriptor
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)¶