Files
@ e58a1891d554
Branch filter:
Location: symposion_app/pinaxcon/proposals/models.py
e58a1891d554
7.3 KiB
text/x-python
Add migration for profile change, update CONFERENCE_ID for 2024
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 | from django.db import models
from django.utils.translation import ugettext_lazy as _
from symposion.proposals.models import ProposalBase
from symposion.text_parser import parse
class Proposal(ProposalBase):
TARGET_USER = 1
TARGET_BUSINESS = 2
TARGET_COMMUNITY = 3
TARGET_DEVELOPER = 4
TARGET_AUDIENCES = [
(TARGET_DEVELOPER, "Developer"),
(TARGET_COMMUNITY, "Community"),
(TARGET_USER, "End User"),
(TARGET_BUSINESS, "Business"),
]
TOPIC_LINUX = 1
TOPIC_SOFTWARE = 2
TOPIC_HARDWARE = 3
TOPIC_FIRMWARE = 4
TOPIC_SYSADMIN = 5
TOPIC_SECURITY = 6
TOPIC_DOCUMENTATION = 7
TOPIC_COMMUNITY = 8
TOPIC_SCIENCE = 9
TOPIC_GLAM = 10
TOPIC_MULTIMEDIA = 11
TOPIC_AEROSPACE = 12
TOPIC_AGRICULTURE = 13
TOPIC_OTHER = 14
PROPOSAL_TOPIC = [
(TOPIC_LINUX, "Linux"),
(TOPIC_SOFTWARE, "Software"),
(TOPIC_HARDWARE, "Hardware"),
(TOPIC_FIRMWARE, "Firmware"),
(TOPIC_SYSADMIN, "System Administration / Operations"),
(TOPIC_SECURITY, "Security"),
(TOPIC_DOCUMENTATION, "Documentation"),
(TOPIC_COMMUNITY, "Community"),
(TOPIC_SCIENCE, "Science & Data"),
(TOPIC_GLAM, "Galleries, Libraries, Archives & Museums (GLAM)"),
(TOPIC_MULTIMEDIA, "Multimedia"),
(TOPIC_AEROSPACE, "Aerospace / UAV"),
(TOPIC_AGRICULTURE, "Agriculture"),
(TOPIC_OTHER, "Other"),
]
LEVEL_BEGINNER = 1
LEVEL_INTERMEDIATE = 2
LEVEL_ADVANCED = 3
EXPERIENCE_LEVEL = [
(LEVEL_BEGINNER, "Beginner"),
(LEVEL_INTERMEDIATE, "Intermediate"),
(LEVEL_ADVANCED, "Advanced"),
]
target_audience = models.IntegerField(
choices=TARGET_AUDIENCES,
help_text="Who is the target audience for your session?",
)
recording_release = models.BooleanField(
default=True,
help_text="I allow Software Freedom Conservancy to release any recordings of "
"presentations covered by this proposal, on YouTube under the "
"standard YouTube licence, and on other platforms under the "
"Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International "
"(<a href='https://creativecommons.org/licenses/by-nc-sa/4.0/'> "
"CC BY-NC-SA 4.0</a>) licence."
)
materials_release = models.BooleanField(
default=True,
help_text="I allow Software Freedom Conservancy to release any other material "
"(such as slides) from presentations covered by this proposal, under "
"the <a "
"href='https://creativecommons.org/licenses/by-sa/4.0/'> "
"Creative Commons Attribution-ShareAlike 4.0 International</a>"
)
primary_topic = models.IntegerField(
choices=PROPOSAL_TOPIC,
help_text="What is the primary topic area for your session?",
null=True,
)
experience_level = models.IntegerField(
choices=EXPERIENCE_LEVEL,
help_text="What level of experience will your session be pitched at?"
)
require_approval = models.BooleanField(
default=False,
help_text="Do you require further approval from your employer or "
"institution before you can confirm your availability to present?"
)
content_warning = models.TextField(
"Content Warning",
help_text=_("This will be shown on the schedule to give attendees "
"advanced warning of topics covered in the session. "),
blank=True,
)
content_warning_html = models.TextField(blank=True)
class Meta:
abstract = True
def save(self, *args, **kwargs):
self.content_warning_html = parse(self.content_warning)
return super(Proposal, self).save(*args, **kwargs)
class TalkProposal(Proposal):
class Meta:
verbose_name = "talk proposal"
class TutorialProposal(Proposal):
class Meta:
verbose_name = "tutorial proposal"
class MiniconfSessionProposal(Proposal):
FORMAT_SHORT_PRESENTATION = 1
FORMAT_MEDIUM_PRESENTATION = 2
FORMAT_LONG_PRESENTATION = 3
FORMAT_DEMONSTRATION = 4
FORMAT_OTHER = 5
TALK_FORMATS = [
(FORMAT_SHORT_PRESENTATION, "Lightning Talk (5-10 min)"),
(FORMAT_MEDIUM_PRESENTATION, "Short Presentation (20-25 min)"),
(FORMAT_LONG_PRESENTATION, "Long Presentation (40-45 min)"),
]
talk_format = models.IntegerField(
choices=TALK_FORMATS,
default=FORMAT_LONG_PRESENTATION,
help_text="Please indicate your preferred talk length in the private abstract field below."
)
ticket_acknowledgement = models.BooleanField(
default=False,
help_text="I understand that I will be required to purchase a conference ticket "
"and arrange my own travel and accommodation."
)
class Meta:
abstract = True
class CopyleftComplianceProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "Copyleft and Compliance talk proposal"
class MemberProjectProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "SFC Member Project talk proposal"
class ContainerDaysProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "Container Days proposal"
class SustainableOpenSourceBusinessProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "Sustainable Open Source Business proposal"
class SoftwareWorkerCoopsProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "Software Worker Co-ops proposal"
class DiversityEquityInclusionProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "Diversity Equity and Inclusion and FOSS proposal"
class FOSSAtPlayProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "FOSS at Play: Games, creative development, and open technology proposal"
class OpenSourcAIDataProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "Open Source AI + Data proposal"
class OpenWorkProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "Issues in Open Work; Common Challenges and Best Practices in the Open Source Industry, Open Scholarship, and Government proposal"
class CommunityProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "Community: Open Source in Practice proposal"
class BSDUnixProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "BSD Unix proposal"
class XMPPProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "XMPP proposal"
class ScienceOfCommunityProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "Science of Community proposal"
class AArch64ARM64Proposal(MiniconfSessionProposal):
class Meta:
verbose_name = "AArch64/ARM64 Servers and Open Source- The Who, What, Why, and How proposal"
class FOSSForEducationProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "FOSS For Education proposal"
class FOSSInDailyLifeProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "FOSS in Daily Life proposal"
class SecurityProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "Security"
class WildCardProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "Wild card"
class RightToRepairProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "Right to Repair"
|