deposit.osf.models module

class deposit.osf.models.OSFDepositPreferences(id, user, repository, on_behalf_of)[source]

Bases: deposit.models.DepositPreferences

Parameters:
  • id (AutoField) – Id
  • user_id (ForeignKey) – User
  • repository_id (ForeignKey) – Repository
  • on_behalf_of (CharField) – If set, your deposits will be associated to this OSF account. This identifier is a string of letters and numbers which can be found in your OSF public profile URL.
exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

id

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>
on_behalf_of

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

repository

Accessor to the related object on the forward side of a many-to-one or one-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

child.parent is a ForwardManyToOneDescriptor instance.

user

Accessor to the related object on the forward side of a many-to-one or one-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

child.parent is a ForwardManyToOneDescriptor instance.