equal
deleted
inserted
replaced
1 # -*- coding: utf-8 -*- |
|
2 from __future__ import absolute_import |
|
3 |
|
4 from django.db import models |
1 from django.db import models |
5 from django.contrib.auth.models import User |
2 from django.contrib.auth.models import User |
6 |
3 |
|
4 from project.scipycon.base import models as base_models |
7 |
5 |
8 class Paper(models.Model): |
6 |
|
7 class Paper(base_models.Base): |
9 """Data model for storing proceedings paper. |
8 """Data model for storing proceedings paper. |
10 """ |
9 """ |
11 |
10 |
12 # Title of the paper |
11 # Title of the paper |
13 title = models.CharField(max_length=200) |
12 title = models.CharField(max_length=200) |
20 |
19 |
21 # Authors |
20 # Authors |
22 authors = models.ManyToManyField(User) |
21 authors = models.ManyToManyField(User) |
23 |
22 |
24 |
23 |
25 class Attachments(models.Model): |
24 class Attachments(models.Base): |
26 """Stores attachments for papers. |
25 """Stores attachments for papers. |
27 """ |
26 """ |
28 |
27 |
29 # Attachment for generating paper |
28 # Attachment for generating paper |
30 attachments = models.FileField(upload_to='attachments/%Y/%m/%d') |
29 attachments = models.FileField(upload_to='attachments/%Y/%m/%d') |