view 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
line wrap: on
line source

from django.contrib.comments.models import Comment
from mptt.models import MPTTModel, TreeForeignKey



class TreeComments(MPTTModel,Comment):
	parent = TreeForeignKey('self', null =True, blank=True,related_name='children')

	class MPTTMeta:
		order_insertion_by = ['submit_date']

	class Meta:
		ordering = ['tree_id','lft']