forked from AFPy/PonyConf
speaker needs sound
This commit is contained in:
parent
da95523877
commit
e74afdd550
|
@ -8,6 +8,6 @@ __all__ = ['UserForm', 'ProfileForm']
|
||||||
|
|
||||||
UserForm = modelform_factory(User, fields=['first_name', 'last_name', 'email', 'username'])
|
UserForm = modelform_factory(User, fields=['first_name', 'last_name', 'email', 'username'])
|
||||||
|
|
||||||
ParticipationForm = modelform_factory(Participation, fields=['transport', 'connector', 'constraints'])
|
ParticipationForm = modelform_factory(Participation, fields=['transport', 'connector', 'sound', 'constraints'])
|
||||||
|
|
||||||
ProfileForm = modelform_factory(Profile, fields=['biography'])
|
ProfileForm = modelform_factory(Profile, fields=['biography'])
|
||||||
|
|
20
accounts/migrations/0005_participation_sound.py
Normal file
20
accounts/migrations/0005_participation_sound.py
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.9.7 on 2016-06-25 10:38
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('accounts', '0004_remove_participation_review_topics'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='participation',
|
||||||
|
name='sound',
|
||||||
|
field=models.BooleanField(default=False, verbose_name='I need sound'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -40,6 +40,7 @@ class Participation(models.Model):
|
||||||
transport = models.IntegerField(choices=enum_to_choices(TRANSPORTS), blank=True, null=True)
|
transport = models.IntegerField(choices=enum_to_choices(TRANSPORTS), blank=True, null=True)
|
||||||
connector = models.IntegerField(choices=enum_to_choices(CONNECTORS), blank=True, null=True)
|
connector = models.IntegerField(choices=enum_to_choices(CONNECTORS), blank=True, null=True)
|
||||||
constraints = models.TextField(blank=True)
|
constraints = models.TextField(blank=True)
|
||||||
|
sound = models.BooleanField("I need sound", default=False)
|
||||||
|
|
||||||
objects = models.Manager()
|
objects = models.Manager()
|
||||||
on_site = CurrentSiteManager()
|
on_site = CurrentSiteManager()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user