update sections, work a bit on style

This commit is contained in:
bkfox
2015-10-06 18:01:19 +02:00
parent cfdc9b6de0
commit cde58334bd
15 changed files with 264 additions and 163 deletions

View File

@ -6,6 +6,7 @@ import aircox_programs.models as programs
class Program (RelatedPost):
class Relation:
related_model = programs.Program
bind_mapping = True
mapping = {
'title': 'name',
'content': 'description',
@ -14,6 +15,7 @@ class Program (RelatedPost):
class Episode (RelatedPost):
class Relation:
related_model = programs.Episode
bind_mapping = True
mapping = {
'title': 'name',
'content': 'description',