forked from rc/aircox
update sections, work a bit on style
This commit is contained in:
@ -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',
|
||||
|
Reference in New Issue
Block a user