invitations.models module¶
-
class
invitations.models.RegistrationInvitation(*args, **kwargs)[source]¶ Bases:
django.db.models.base.ModelInvitation to particular persons for registration
-
profile¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
title¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
first_name¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
last_name¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
email¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
status¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
message_style¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
personal_message¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
invited_by¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
created_by¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
invitation_type¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
invitation_key¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
key_expires¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
date_sent_first¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
date_sent_last¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
times_sent¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
created¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
modified¶ 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.ManagerFromRegistrationInvitationQuerySet object>¶
-
property
has_responded¶
-
exception
DoesNotExist¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
citation_notifications¶ 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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
created_by_id¶
-
get_invitation_type_display(*, field=<django.db.models.fields.CharField: invitation_type>)¶
-
get_message_style_display(*, field=<django.db.models.fields.CharField: message_style>)¶
-
get_next_by_created(*, field=<django.db.models.fields.DateTimeField: created>, is_next=True, **kwargs)¶
-
get_next_by_key_expires(*, field=<django.db.models.fields.DateTimeField: key_expires>, is_next=True, **kwargs)¶
-
get_next_by_modified(*, field=<django.db.models.fields.DateTimeField: modified>, is_next=True, **kwargs)¶
-
get_previous_by_created(*, field=<django.db.models.fields.DateTimeField: created>, is_next=False, **kwargs)¶
-
get_previous_by_key_expires(*, field=<django.db.models.fields.DateTimeField: key_expires>, is_next=False, **kwargs)¶
-
get_previous_by_modified(*, field=<django.db.models.fields.DateTimeField: modified>, is_next=False, **kwargs)¶
-
get_status_display(*, field=<django.db.models.fields.CharField: status>)¶
-
get_title_display(*, field=<django.db.models.fields.CharField: title>)¶
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
invited_by_id¶
-
profile_id¶
-
-
class
invitations.models.CitationNotification(id, invitation, contributor, submission, publication, processed, created_by, date_sent, created, modified)[source]¶ Bases:
django.db.models.base.Model-
invitation¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
contributor¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
submission¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
publication¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
processed¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
created_by¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
date_sent¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
created¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
modified¶ 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.ManagerFromCitationNotificationQuerySet object>¶
-
save(*args, **kwargs)[source]¶ 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.
-
mail_sent()[source]¶ Update instance fields as if a new citation notification mail has been sent out.
-
property
email¶
-
property
last_name¶
-
property
get_title¶
-
exception
DoesNotExist¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
contributor_id¶
-
created_by_id¶
-
get_next_by_created(*, field=<django.db.models.fields.DateTimeField: created>, is_next=True, **kwargs)¶
-
get_next_by_modified(*, field=<django.db.models.fields.DateTimeField: modified>, is_next=True, **kwargs)¶
-
get_previous_by_created(*, field=<django.db.models.fields.DateTimeField: created>, is_next=False, **kwargs)¶
-
get_previous_by_modified(*, field=<django.db.models.fields.DateTimeField: modified>, is_next=False, **kwargs)¶
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
invitation_id¶
-
publication_id¶
-
submission_id¶
-