aircox/website/models.py
2015-10-29 11:01:15 +01:00

25 lines
564 B
Python

from django.db import models
from aircox_cms.models import RelatedPost
import aircox_programs.models as programs
class Program (RelatedPost):
class Relation:
model = programs.Program
bind_mapping = True
mapping = {
'title': 'name',
'content': 'description',
}
class Episode (RelatedPost):
class Relation:
model = programs.Episode
bind_mapping = True
mapping = {
'thread': 'program',
'title': 'name',
'content': 'description',
}