Mercurial > agora
comparison apps/treecomments/models.py @ 196:134f726fd62c
Removed extrawhitespaces and moved comments template files to templates folder
author | Ahsan Ali Shahid <ahsan.ali.shahid@gmail.com> |
---|---|
date | Thu, 04 Jul 2013 15:45:50 +0500 |
parents | 50ba20441122 |
children |
comparison
equal
deleted
inserted
replaced
195:baf8776dc44d | 196:134f726fd62c |
---|---|
1 from django.contrib.comments.models import Comment | 1 from django.contrib.comments.models import Comment |
2 from mptt.models import MPTTModel, TreeForeignKey | 2 from mptt.models import MPTTModel, TreeForeignKey |
3 # Create your models here. | 3 |
4 | 4 |
5 | 5 |
6 class TreeComments(MPTTModel,Comment): | 6 class TreeComments(MPTTModel,Comment): |
7 parent = TreeForeignKey('self', null =True, blank=True,related_name='children') | 7 parent = TreeForeignKey('self', null =True, blank=True,related_name='children') |
8 | 8 |