feat: Language added for talks. Closing #28
This commit is contained in:
parent
9a06cd81a1
commit
9b629cb80b
@ -86,7 +86,7 @@ class TalkForm(forms.ModelForm):
|
||||
|
||||
class Meta:
|
||||
model = Talk
|
||||
fields = ('category', 'title', 'description', 'notes', 'materials',)
|
||||
fields = ('category', 'title', 'language', 'description', 'notes', 'materials',)
|
||||
|
||||
|
||||
class TalkStaffForm(forms.ModelForm):
|
||||
|
19
cfp/migrations/0028_alter_volunteer_phone_number.py
Normal file
19
cfp/migrations/0028_alter_volunteer_phone_number.py
Normal file
@ -0,0 +1,19 @@
|
||||
# Generated by Django 4.1.7 on 2024-02-22 12:43
|
||||
|
||||
import cfp.models
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('cfp', '0027_auto_20200809_1530'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='volunteer',
|
||||
name='phone_number',
|
||||
field=models.CharField(blank=True, default='', max_length=64, validators=[cfp.models.validate_phone_number], verbose_name='Phone number'),
|
||||
),
|
||||
]
|
18
cfp/migrations/0029_talk_language.py
Normal file
18
cfp/migrations/0029_talk_language.py
Normal file
@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.1.7 on 2024-02-22 12:45
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('cfp', '0028_alter_volunteer_phone_number'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='talk',
|
||||
name='language',
|
||||
field=models.CharField(blank=True, max_length=10),
|
||||
),
|
||||
]
|
@ -364,6 +364,7 @@ class Talk(PonyConfModel):
|
||||
video = models.URLField(max_length=1000, blank=True, default='', verbose_name='Video URL')
|
||||
token = models.UUIDField(default=uuid.uuid4, editable=False, unique=True)
|
||||
conversation = models.OneToOneField(MessageThread, on_delete=models.PROTECT)
|
||||
language = models.CharField(max_length=10, blank=True)
|
||||
|
||||
objects = TalkManager()
|
||||
|
||||
|
@ -55,6 +55,7 @@
|
||||
<th class="text-center">{% trans "Title" %} <a href="?{{ sort_urls.title }}"><span class="glyphicon glyphicon-{{ sort_glyphicons.title }} pull-right"></span></a></th>
|
||||
<th class="text-center">{% trans "Intervention kind" %} <a href="?{{ sort_urls.category }}"><span class="glyphicon glyphicon-{{ sort_glyphicons.category }} pull-right"></span></a></th>
|
||||
<th class="text-center">{% trans "Speakers" %}</th>
|
||||
<th class="text-center">{% trans "Language" %}</th>
|
||||
<th class="text-center">{% trans "Track" %}</th>
|
||||
<th class="text-center">{% trans "Tags" %}</th>
|
||||
<th class="text-center">{% trans "Status" %} <a href="?{{ sort_urls.status }}"><span class="glyphicon glyphicon-{{ sort_glyphicons.status }} pull-right"></span></a></th>
|
||||
@ -83,6 +84,7 @@
|
||||
{% empty %}–
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td>{{ talk.language }}</td>
|
||||
<td>{{ talk.track|default:"–" }}</td>
|
||||
<td>{{ talk.get_tags_html }}</td>
|
||||
<td>{{ talk.get_status_str }}</td>
|
||||
|
Loading…
Reference in New Issue
Block a user