drc.datamodel package

drc.datamodel.admin module

class drc.datamodel.admin.EnkelvoudigInformatieObjectAdmin(model, admin_site)

Bases: django.contrib.admin.options.ModelAdmin

class drc.datamodel.admin.EnkelvoudigInformatieObjectCanonicalAdmin(model, admin_site)

Bases: privates.admin.PrivateMediaMixin, django.contrib.admin.options.ModelAdmin

class drc.datamodel.admin.EnkelvoudigInformatieObjectInline(parent_model, admin_site)

Bases: django.contrib.admin.options.StackedInline

model

alias of drc.datamodel.models.EnkelvoudigInformatieObject

class drc.datamodel.admin.GebruiksrechtenAdmin(model, admin_site)

Bases: django.contrib.admin.options.ModelAdmin

class drc.datamodel.admin.GebruiksrechtenInline(parent_model, admin_site)

Bases: django.contrib.admin.options.TabularInline

model

alias of drc.datamodel.models.Gebruiksrechten

class drc.datamodel.admin.ObjectInformatieObjectAdmin(model, admin_site)

Bases: django.contrib.admin.options.ModelAdmin

drc.datamodel.models module

class drc.datamodel.models.EnkelvoudigInformatieObject(*args, **kwargs)

Bases: vng_api_common.models.APIMixin, drc.datamodel.models.InformatieObject

Stores the content of a specific version of an EnkelvoudigInformatieObjectCanonical

The model is split into two parts to support versioning, now a single EnkelvoudigInformatieObjectCanonical can exist with multiple different EnkelvoudigInformatieObjects, which can be retrieved by filtering

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

class drc.datamodel.models.EnkelvoudigInformatieObjectCanonical(*args, **kwargs)

Bases: django.db.models.base.Model

Indicates the identity of a document

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

class drc.datamodel.models.Gebruiksrechten(id, uuid, informatieobject, omschrijving_voorwaarden, startdatum, einddatum)

Bases: django.db.models.base.Model

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

save(*args, **kwargs)

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

class drc.datamodel.models.ObjectInformatieObject(*args, **kwargs)

Bases: vng_api_common.models.APIMixin, django.db.models.base.Model

Modelleer een INFORMATIEOBJECT horend bij een OBJECT.

INFORMATIEOBJECTen zijn bestanden die in het DRC leven. Een collectie van (enkelvoudige) INFORMATIEOBJECTen wordt ook als 1 enkele resource ontsloten.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned