1 from django.db import models
2 from django.db.models.signals import post_save
6 from catalogue.models import Lesson
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')