turn on banner for 1%
[edumed.git] / forum / models.py
1 # -*- coding: utf-8 -*-
2 from django.db import models
3
4 import pybb.models
5
6 from catalogue.models import Lesson
7
8
9 class Topic(models.Model):
10     pybb_topic = models.OneToOneField(pybb.models.Topic, primary_key=True, related_name='edumed_topic')
11     lesson = models.ForeignKey(Lesson, null=True, blank=True, related_name='forum_topics')