proceedings.models module

class proceedings.models.Proceedings(*args, **kwargs)[source]

Bases: scipost.behaviors.TimeStampedModel

A Proceeding is a special kind of Journal Issue.

issue

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

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

minimum_referees

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

event_name

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

event_suffix

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

event_description

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

event_start_date

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

event_end_date

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

Just like the FileDescriptor, but for ImageFields. The only difference is assigning the width/height to the width_field/height_field, if appropriate.

picture

Just like the FileDescriptor, but for ImageFields. The only difference is assigning the width/height to the width_field/height_field, if appropriate.

picture_credit

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

cover_image

Just like the FileDescriptor, but for ImageFields. The only difference is assigning the width/height to the width_field/height_field, if appropriate.

lead_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.

fellowships

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.

submissions_open

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

submissions_deadline

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

submissions_close

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

template_latex_tgz

The descriptor for the file attribute on the model instance. Return a FieldFile when accessed so you can write code like:

>>> from myapp.models import MyModel
>>> instance = MyModel.objects.get(pk=1)
>>> instance.file.size

Assign a file object on assignment so you can do:

>>> with open('/path/to/hello.world') as f:
...     instance.file = File(f)
objects = <django.db.models.manager.ManagerFromProceedingsQuerySet object>
get_absolute_url()[source]
property open_for_submission
exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

get_next_by_created(*, field=<django.db.models.fields.DateTimeField: created>, is_next=True, **kwargs)
get_next_by_latest_activity(*, field=<scipost.db.fields.AutoDateTimeField: latest_activity>, is_next=True, **kwargs)
get_next_by_submissions_close(*, field=<django.db.models.fields.DateField: submissions_close>, is_next=True, **kwargs)
get_next_by_submissions_deadline(*, field=<django.db.models.fields.DateField: submissions_deadline>, is_next=True, **kwargs)
get_next_by_submissions_open(*, field=<django.db.models.fields.DateField: submissions_open>, is_next=True, **kwargs)
get_previous_by_created(*, field=<django.db.models.fields.DateTimeField: created>, is_next=False, **kwargs)
get_previous_by_latest_activity(*, field=<scipost.db.fields.AutoDateTimeField: latest_activity>, is_next=False, **kwargs)
get_previous_by_submissions_close(*, field=<django.db.models.fields.DateField: submissions_close>, is_next=False, **kwargs)
get_previous_by_submissions_deadline(*, field=<django.db.models.fields.DateField: submissions_deadline>, is_next=False, **kwargs)
get_previous_by_submissions_open(*, field=<django.db.models.fields.DateField: submissions_open>, 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.

issue_id
lead_fellow_id
submissions

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.