Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions pyconbalkan/speaker/migrations/0008_AddSpeakerExcerpt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 2.0.5 on 2018-06-20 06:07
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a big deal but naming convention for file names is all-lowercase with underscores. The same applies to other PR with migration.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, I'll fix that in both PRs and push the change.


from django.db import migrations
import markdownx.models


class Migration(migrations.Migration):

dependencies = [
('speaker', '0007_speaker_github'),
]

operations = [
migrations.AddField(
model_name='speaker',
name='talk_excerpt',
field=markdownx.models.MarkdownxField(blank=True, null=True),
),
]
2 changes: 2 additions & 0 deletions pyconbalkan/speaker/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
from django.db.models import CASCADE

from pyconbalkan.core.models import Person, ActiveModel
from markdownx.models import MarkdownxField


class Speaker(ActiveModel, Person):
keynote = models.BooleanField(default=False)
talk_excerpt = MarkdownxField(null=True, blank=True)


class SpeakerPhoto(models.Model):
Expand Down