* feat: Add TelechatAgendaContent model and related support * feat: Add UI for managing TelechatAgendaContents * refactor: Rename _view view to _manage * feat: Add a view to dump the TelechatAgendaContent as text/plain * refactor: Point agenda_data() helpers at content in the DB * refactor: Replace references to settings URLs/paths with new plumbing * chore: Remove now-obsolete settings from settings.py * feat: Link to telechat_agenda_content_manage view from iesg agenda * fix: Use correct view name * feat: Link from agenda content management page to IESG agenda view * chore: Create resources * chore: Add new names to names.json * chore: Renumber migration after rebase * chore: Remove unused import * fix: Clean up partially removed code * chore: Add admin model for TelechatAgendaContent * chore: Simplify __str__ method for TelechatAgendaContent * test: Add TelechatAgendaContentFactory * test: Test the fill_in_agenda_administrivia() function * test: Test that agenda contains action_items content * test: Test that sensitive agenda links are restricted by role * test: Test the telechat_agenda_content_view view * test: Add test of telechat_agenda_content_edit view * fix: Add type attribute to button to satisfy html validator * test: Filter TelechatAgendaSectionName to used=True for tests * test: More thoroughly test for likely(ish) permission errors * fix: Fix typo in "tablist" role * test: Test telechat_agenda_content_manage view * style: Put back newlines at EOF * chore: Add admin for TelechatAgendaSectionName * chore: Renumber migrations * fix: Depend on the correct migration Forgot to update the number, but was also depending on the wrong migration.
24 lines
619 B
Python
24 lines
619 B
Python
# Copyright The IETF Trust 2016-2021, All Rights Reserved
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import debug # pyflakes:ignore
|
|
import factory
|
|
|
|
from ietf.iesg.models import TelechatAgendaItem, TelechatAgendaContent
|
|
|
|
|
|
class IESGMgmtItemFactory(factory.django.DjangoModelFactory):
|
|
class Meta:
|
|
model = TelechatAgendaItem
|
|
|
|
type = 3
|
|
text = factory.Faker('paragraph', nb_sentences=3)
|
|
title = factory.Faker('sentence', nb_words=3)
|
|
|
|
|
|
class TelechatAgendaContentFactory(factory.django.DjangoModelFactory):
|
|
class Meta:
|
|
model = TelechatAgendaContent
|
|
|
|
text = factory.Faker('paragraph', nb_sentences=5)
|