-
Notifications
You must be signed in to change notification settings - Fork 17
New timetable load #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
New timetable load #215
Changes from 11 commits
98b6242
ee47522
3f4cc7a
df5a8e6
c29710b
e51b634
c81b8da
815f30d
4904899
38d9c38
aa6f76c
2383eb1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,12 @@ class Presentation(AbstractConference, ActiveModel): | |
| (KEYNOTE, 'Keynote'), | ||
| ) | ||
|
|
||
| PRESENTATION_TYPE_REVERSE = { | ||
| 'Talk': TALK, | ||
| 'Workshop': WORKSHOP, | ||
| 'Keynote': KEYNOTE | ||
| } | ||
|
|
||
| title = models.CharField(null=True, blank=True, max_length=100) | ||
| description = MarkdownxField(null=True, blank=True) | ||
| type = models.IntegerField(choices=PRESENTATION_TYPE, default=TALK) | ||
|
|
@@ -30,6 +36,11 @@ class Presentation(AbstractConference, ActiveModel): | |
| def slugify(self): | ||
| return slugify(self.title) | ||
|
|
||
| @property | ||
|
||
| def slugify_speaker(self): | ||
| if self.speaker: | ||
| return slugify(self.speaker.name) | ||
|
|
||
| def __str__(self): | ||
| return '[{}] {}'.format(self.get_type_display(), self.title) | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.