Repository navigation
Expand file tree
/
Copy pathmodels.py
More file actions
59 lines (49 loc) · 2.21 KB
/
Copy pathmodels.py
File metadata and controls
59 lines (49 loc) · 2.21 KB
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
from django.db import models
from django.conf import settings
from markupfield.fields import MarkupField
from cms.models import ContentManageable, NameSlugModel
DEFAULT_MARKUP_TYPE = getattr(settings, 'DEFAULT_MARKUP_TYPE', 'restructuredtext')
class WorkGroup(ContentManageable, NameSlugModel):
"""
Model to store Python Working Groups
"""
active = models.BooleanField(default=True, db_index=True)
approved = models.BooleanField(default=False, db_index=True)
short_description = models.TextField(
blank=True,
help_text="Short description used on listing pages",
)
purpose = MarkupField(
default_markup_type=DEFAULT_MARKUP_TYPE,
help_text="State what the mission of the group is. List all (if any) common goals that will be shared amongst the workgroup.",
)
active_time = MarkupField(
default_markup_type=DEFAULT_MARKUP_TYPE,
help_text="How long will this workgroup exist? If the mission is not complete by the stated time, is it extendable? Is so, for how long?",
)
core_values = MarkupField(
default_markup_type=DEFAULT_MARKUP_TYPE,
help_text="List the core values that the workgroup will adhere to throughout its existence. Will the workgroup adopt any statements? If so, which statement?",
)
rules = MarkupField(
default_markup_type=DEFAULT_MARKUP_TYPE,
help_text="Give a comprehensive explanation of how the decision making will work within the workgroup and list the rules that accompany these procedures.",
)
communication = MarkupField(
default_markup_type=DEFAULT_MARKUP_TYPE,
help_text="How will the team communicate? How often will the team communicate?",
)
support = MarkupField(
blank=True,
default_markup_type=DEFAULT_MARKUP_TYPE,
help_text="What resources will you need from the PSF in order to have a functional and effective workgroup?",
)
url = models.URLField('URL', blank=True, help_text="Main URL for Group")
organizers = models.ManyToManyField(
settings.AUTH_USER_MODEL,
related_name="+"
)
members = models.ManyToManyField(
settings.AUTH_USER_MODEL,
related_name="working_groups",
)