aircox/website/models.py
2015-12-01 16:16:45 +01:00

23 lines
503 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 = {
}
class Episode (RelatedPost):
class Relation:
model = programs.Diffusion
bind_mapping = True
mapping = {
'thread': 'program',
# 'title': 'name',
# 'content': 'description',
}