journals.models.submission_template module¶
-
class
journals.models.submission_template.
SubmissionTemplate
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
Document template for submission to a given journal.
-
TYPE_LATEX_TGZ
= 'latex-tgz'¶
-
TYPE_DOCX
= 'docx'¶
-
TYPE_ODT
= 'odt'¶
-
TYPE_CHOICES
= (('latex-tgz', 'LaTeX (gzipped tarball)'), ('docx', 'Office Open XML (.docx)'), ('odt', 'OpenDocument Text (.odt)'))¶
-
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 aForwardManyToOneDescriptor
instance.
-
template_type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
template_file
¶ 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)
-
date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instructions
¶ 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
-
get_next_by_date
(*, field=<django.db.models.fields.DateField: date>, is_next=True, **kwargs)¶
-
get_previous_by_date
(*, field=<django.db.models.fields.DateField: date>, is_next=False, **kwargs)¶
-
get_template_type_display
(*, field=<django.db.models.fields.CharField: template_type>)¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
journal_id
¶
-
objects
= <django.db.models.manager.Manager object>¶
-