SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 097a09b3 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Correct docstrings in journals/models.py

parent 26304185
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2019-01-10 11:04
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('journals', '0053_auto_20181118_1758'),
]
operations = [
migrations.AlterField(
model_name='issue',
name='in_journal',
field=models.ForeignKey(blank=True, help_text='Assign either a Volume or Journal to the Issue', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='issues', to='journals.Journal'),
),
migrations.AlterField(
model_name='issue',
name='in_volume',
field=models.ForeignKey(blank=True, help_text='Assign either a Volume or Journal to the Issue', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='issues', to='journals.Volume'),
),
]
......@@ -190,7 +190,8 @@ class Journal(models.Model):
class Volume(models.Model):
"""
A Volume may be used as a subgroup of Publications related to a specific Issue object.
A Volume belongs to a specific Journal, and is a container for
either (multiple) Issue(s) or Publication(s).
"""
in_journal = models.ForeignKey('journals.Journal', on_delete=models.CASCADE)
number = models.PositiveSmallIntegerField()
......@@ -255,14 +256,15 @@ class Volume(models.Model):
class Issue(models.Model):
"""
An Issue may be used as a subgroup of Publications related to a specific Journal object.
An Issue is related to a specific Journal, either indirectly via a Volume
container, or directly. It is a container for multiple Publications.
"""
in_journal = models.ForeignKey(
'journals.Journal', on_delete=models.CASCADE, null=True, blank=True,
help_text='Assign either an Volume or Journal to the Issue')
help_text='Assign either a Volume or Journal to the Issue')
in_volume = models.ForeignKey(
'journals.Volume', on_delete=models.CASCADE, null=True, blank=True,
help_text='Assign either an Volume or Journal to the Issue')
help_text='Assign either a Volume or Journal to the Issue')
number = models.PositiveSmallIntegerField()
slug = models.SlugField()
start_date = models.DateField(default=timezone.now)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment