Files
@ f1b58bc74cdd
Branch filter:
Location: symposion_app/pinaxcon/proposals/models.py - annotation
f1b58bc74cdd
4.7 KiB
text/x-python
Update talk recording licence
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 | 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 9c986111a193 9c986111a193 9c986111a193 9c986111a193 9c986111a193 38aebda92e5f 9c986111a193 f60e37072525 f60e37072525 f60e37072525 04f246d85071 04f246d85071 f60e37072525 f60e37072525 f60e37072525 f60e37072525 04f246d85071 04f246d85071 04f246d85071 4847f13de047 f60e37072525 f60e37072525 f1b58bc74cdd f1b58bc74cdd f1b58bc74cdd 9c986111a193 9c986111a193 9c986111a193 9c986111a193 4847f13de047 9c986111a193 9c986111a193 9c986111a193 9c986111a193 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 04f246d85071 04f246d85071 04f246d85071 8bf549c37f30 39b556b7ac4f f60e37072525 8bf549c37f30 8bf549c37f30 8bf549c37f30 8bf549c37f30 39b556b7ac4f 10b6358b9271 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 10b6358b9271 38aebda92e5f 10b6358b9271 8bf549c37f30 8bf549c37f30 8bf549c37f30 246bbcb324aa 246bbcb324aa f60e37072525 f60e37072525 f60e37072525 f60e37072525 246bbcb324aa f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 246bbcb324aa 246bbcb324aa f60e37072525 f60e37072525 f60e37072525 246bbcb324aa 246bbcb324aa 246bbcb324aa 246bbcb324aa f60e37072525 f60e37072525 f60e37072525 246bbcb324aa 246bbcb324aa f60e37072525 f60e37072525 f60e37072525 f60e37072525 f60e37072525 246bbcb324aa 246bbcb324aa f60e37072525 | from django.db import models
from symposion.proposals.models import ProposalBase
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"),
]
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 Linux Australia 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 Linux Australia to release any other material "
"(such as slides) from presentations covered by this proposal, under "
"the <a "
"href='https://creativecommons.org/licenses/by-sa/3.0/au/deed.en'> "
"Creative Commons Attribution-Share Alike Australia 3.0 Licence</a>"
)
class Meta:
abstract = True
class SessionProposal(Proposal):
"""
Base Session Proposal
This is not a meta class as we want a single table to store the common
data across all session proposal types.
"""
TOPIC_SOFTWARE = 1
TOPIC_HARDWARE = 2
TOPIC_FIRMWARE = 3
TOPIC_KERNEL = 4
TOPIC_DOCUMENTATION = 5
TOPIC_COMMUNITY = 6
TOPIC_SECURITY = 7
TOPIC_OPERATIONS = 8
TOPIC_OTHER = 9
PROPOSAL_TOPIC = [
(TOPIC_SOFTWARE, "Software"),
(TOPIC_HARDWARE, "Hardware"),
(TOPIC_FIRMWARE, "Firmware"),
(TOPIC_KERNEL, "Linux Kernel"),
(TOPIC_DOCUMENTATION, "Documentation"),
(TOPIC_COMMUNITY, "Community"),
(TOPIC_SECURITY, "Security"),
(TOPIC_OPERATIONS, "Deployment & Operations"),
(TOPIC_OTHER, "Other"),
]
LEVEL_BEGINNER = 1
LEVEL_INTERMEDIATE = 2
LEVEL_ADVANCED = 3
EXPERIENCE_LEVEL = [
(LEVEL_BEGINNER, "Beginner"),
(LEVEL_INTERMEDIATE, "Intermediate"),
(LEVEL_ADVANCED, "Advanced"),
]
primary_topic = models.IntegerField(
choices=PROPOSAL_TOPIC,
help_text="What is the primary topic area for your session?"
)
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?"
)
class TalkProposal(SessionProposal):
class Meta:
verbose_name = "talk proposal"
class TutorialProposal(SessionProposal):
class Meta:
verbose_name = "tutorial proposal"
class MiniconfProposal(Proposal):
"""
Miniconf Proposal
Note that this is just a Proposal, not a SessionProposal, as it does not
require a number of fields that the others use.
"""
target_audience = models.IntegerField(choices=Proposal.TARGET_AUDIENCES,
default=Proposal.TARGET_DEVELOPER)
class Meta:
verbose_name = "miniconf proposal"
class MiniconfSessionProposal(SessionProposal):
"""
Base Miniconf Session Proposal
"""
class Meta:
abstract = True
class GlamCommunityProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "GO GLAM Miniconf Proposal"
class KernelProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "Kernel Miniconf Proposal"
class OpenHardwareProposal(MiniconfSessionProposal):
FORMAT_PRESENTATION = 1
FORMAT_TUTORIAL = 2
FORMAT_HANDS_ON = 3
TALK_FORMATS = [
(FORMAT_PRESENTATION, "Presentation"),
(FORMAT_TUTORIAL, "Tutorial"),
(FORMAT_HANDS_ON, "Hands-on"),
]
talk_format = models.IntegerField(
choices=TALK_FORMATS,
default=FORMAT_PRESENTATION,
help_text="Will your session be a presentation, tutorial or hands-on "
"(e.g how to use KiCAD or some other tooling)?"
)
class Meta:
verbose_name = "Open Hardware Miniconf Proposal"
class SysAdminProposal(MiniconfSessionProposal):
class Meta:
verbose_name = "System Administration Miniconf Proposal"
|