conference model: add subscriptions open field
This commit is contained in:
parent
29af189d80
commit
5fd2b339c4
|
@ -180,7 +180,7 @@ class TrackForm(forms.ModelForm):
|
|||
|
||||
|
||||
ConferenceForm = modelform_factory(Conference,
|
||||
fields=['cfp_opening_date', 'cfp_closing_date', 'venue', 'city', 'home'],
|
||||
fields=['cfp_opening_date', 'cfp_closing_date', 'subscriptions_open', 'venue', 'city', 'home'],
|
||||
widgets={
|
||||
'cfp_opening_date': forms.TextInput(),
|
||||
'cfp_closing_date': forms.TextInput(),
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10 on 2016-11-07 22:05
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('proposals', '0026_auto_20161106_2319'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='conference',
|
||||
name='subscriptions_open',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
|
@ -28,6 +28,7 @@ class Conference(models.Model):
|
|||
city = models.CharField(max_length=64, blank=True, default="")
|
||||
cfp_opening_date = models.DateTimeField(null=True, blank=True, default=None)
|
||||
cfp_closing_date = models.DateTimeField(null=True, blank=True, default=None)
|
||||
subscriptions_open = models.BooleanField(default=False)
|
||||
|
||||
def cfp_is_open(self):
|
||||
now = timezone.now()
|
||||
|
|
Loading…
Reference in New Issue