# HG changeset patch # User Madhusudan.C.S # Date 1279620987 -19800 # Node ID 5191e1134082296c77915391aa23a8543ae74c96 # Parent 4387e68286e7ffd1e68d91201596100fb119fc30 Moved Timeline model to the top of the file. diff -r 4387e68286e7 -r 5191e1134082 project/scipycon/base/models.py --- a/project/scipycon/base/models.py Tue Jul 20 15:45:13 2010 +0530 +++ b/project/scipycon/base/models.py Tue Jul 20 15:46:27 2010 +0530 @@ -1,5 +1,33 @@ from django.db import models -from django.core.management.validation import max_length + + +class Timeline(models.Model): + """Timeline of the program + """ + + # Start of registration for the program + registration_start = models.DateTimeField(blank=True) + + # End of registration for the program + registration_end = models.DateTimeField(blank=True) + + # Start of Call for Papers + cfp_start = models.DateTimeField(blank=True) + + # End of Call for Papers + cfp_end = models.DateTimeField(blank=True) + + # Accepted papers announced + accepted_papers_announced = models.DateTimeField(blank=True) + + # Deadline to submit proceedings paper + proceedings_paper_deadline = models.DateTimeField(blank=True) + + # Start of the actual program + event_start = models.DateTimeField(blank=True) + + # End of the actual program + event_end = models.DateTimeField(blank=True) class Event(models.Model): @@ -28,42 +56,13 @@ status = models.CharField(max_length=255, choices=STATUS_CHOICES) -class Timeline(models.Model): - """Timeline of the program - """ - - # Start of registration for the program - registration_start = models.DateTimeField() - - # End of registration for the program - registration_end = models.DateTimeField() - - # Start of Call for Papers - cfp_start = models.DateTimeField() - - # End of Call for Papers - cfp_end = models.DateTimeField() - - # Accepted papers announced - accepted_papers_announced = models.DateTimeField() - - # Deadline to submit proceedings paper - proceedings_paper_deadline = models.DateTimeField() - - # Start of the actual program - event_start = models.DateTimeField() - - # End of the actual program - event_end = models.DateTimeField() - - class ScopedBase(models.Model): """Base model which is in turn inherited by other models which needs to be scoped. """ # Scope of entity in which it is visible - scope = models.ForeignKey(Scope) + scope = models.ForeignKey(Event) class Meta: abstract = True