django-contentrelations 1.1 documentation

Model Reference

RelatedResource

class RelatedResource
source_id

IntegerField

The id of the source object. Part of a generic relation to the source object.

source_type

ForeignKey (django.contrib.contenttypes.models.ContentType)

The ContentType of the source object. Part of the generic relation to the source object.

source_object

GenericForeignKey

The source object as defined by the source_id and source_type.

object_id

IntegerField

The id of the related object. Part of a generic relation to the related object.

object_type

ForeignKey (django.contrib.contenttypes.models.ContentType)

The ContentType of the related object. Part of the generic relation to the related object.

object

GenericForeignKey

The related object as defined by the object_id and object_type.

relation_source

IntegerField

Currently unused, but hopefully will be used to allow multiple types of resource relationships in a future version.

relation_type

CharField (255)

This is a free-form field for specifying how the related object is linked to the source object.

order

IntegerField

Allows for establishing an order to the related objects.