comparison apps/treecomments/models.py @ 194:50ba20441122

Added comment template files and customized comments app files
author ahsanalishahid <ahsan.ali.shahid@gmail.com>
date Tue, 02 Jul 2013 02:04:09 +0500
parents
children 134f726fd62c
comparison
equal deleted inserted replaced
193:fe51ec4eccc1 194:50ba20441122
1 from django.contrib.comments.models import Comment
2 from mptt.models import MPTTModel, TreeForeignKey
3 # Create your models here.
4
5
6 class TreeComments(MPTTModel,Comment):
7 parent = TreeForeignKey('self', null =True, blank=True,related_name='children')
8
9 class MPTTMeta:
10 order_insertion_by = ['submit_date']
11
12 class Meta:
13 ordering = ['tree_id','lft']
14
15