submissions.models.recommendation module

class submissions.models.recommendation.EICRecommendation(*args, **kwargs)[source]

Bases: submissions.behaviors.SubmissionRelatedObjectMixin, django.db.models.base.Model

A recommendation formulated by the EIC for a specific Submission.

The EICRecommendation on a Submission is formulated by the Editor-in-charge at the end of the refereeing cycle. If it recommends a minor/major revision, it is communicated directly to the authors. If it recommends to publish or reject, it is voted on by chosen Fellows of the appropriate Editorial College.

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.parent is a ForwardManyToOneDescriptor instance.

date_submitted

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

remarks_for_authors

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

requested_changes

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

remarks_for_editorial_college

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

for_journal

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.parent is a ForwardManyToOneDescriptor instance.

recommendation

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.

version

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

active

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

eligible_to_vote

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

voted_for

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

voted_against

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

voted_abstain

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

voting_deadline

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.ManagerFromEICRecommendationQuerySet object>
get_absolute_url()[source]

Return the url of the Submission detail page.

Note that the EICRecommendation is not publicly visible, so the use of this url is limited.

property notification_name

Return string representation of this EICRecommendation as shown in Notifications.

property nr_for

Return the number of votes ‘for’.

property nr_against

Return the number of votes ‘against’.

property nr_abstained

Return the number of votes ‘abstained’.

property is_deprecated

Check if Recommendation is deprecated.

property may_be_reformulated

Check if this EICRecommdation is allowed to be reformulated in a new version.

property voting_in_preparation
property undergoing_voting
property decision_fixed
get_other_versions()[source]

Return other versions of EICRecommendations for this Submission.

get_full_status_display()[source]

Return recommendation and status field display.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

alternativerecommendation_set

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 a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

for_journal_id
get_next_by_date_submitted(*, field=<django.db.models.fields.DateTimeField: date_submitted>, is_next=True, **kwargs)
get_next_by_voting_deadline(*, field=<django.db.models.fields.DateTimeField: voting_deadline>, is_next=True, **kwargs)
get_previous_by_date_submitted(*, field=<django.db.models.fields.DateTimeField: date_submitted>, is_next=False, **kwargs)
get_previous_by_voting_deadline(*, field=<django.db.models.fields.DateTimeField: voting_deadline>, is_next=False, **kwargs)
get_recommendation_display(*, field=<django.db.models.fields.SmallIntegerField: recommendation>)
get_status_display(*, field=<django.db.models.fields.CharField: status>)
id

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

remarks

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 a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

submission_id
class submissions.models.recommendation.AlternativeRecommendation(*args, **kwargs)[source]

Bases: django.db.models.base.Model

Alternative recommendation from voting Fellow who disagrees with EICRec.

eicrec

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.parent is a ForwardManyToOneDescriptor instance.

fellow

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.parent is a ForwardManyToOneDescriptor instance.

for_journal

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.parent is a ForwardManyToOneDescriptor instance.

recommendation

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

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

eicrec_id
fellow_id
for_journal_id
get_recommendation_display(*, field=<django.db.models.fields.SmallIntegerField: recommendation>)
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>