Some mil form fields are not required
[edumed.git] / forum / models.py
1 from django.db import models
2 from django.db.models.signals import post_save
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')
12