speaker needs sound

This commit is contained in:
Guilhem Saurel 2016-06-25 12:41:08 +02:00
parent da95523877
commit e74afdd550
3 changed files with 22 additions and 1 deletions

View File

@ -8,6 +8,6 @@ __all__ = ['UserForm', 'ProfileForm']
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'])

View 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'),
),
]

View File

@ -40,6 +40,7 @@ class Participation(models.Model):
transport = models.IntegerField(choices=enum_to_choices(TRANSPORTS), blank=True, null=True)
connector = models.IntegerField(choices=enum_to_choices(CONNECTORS), blank=True, null=True)
constraints = models.TextField(blank=True)
sound = models.BooleanField("I need sound", default=False)
objects = models.Manager()
on_site = CurrentSiteManager()