Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Safe value for older MySQL version, thanks ericflo

  • Loading branch information...
commit 47db31d45a0d35de294d8f6e5964ab65d8afacc5 1 parent c1b29e9
@HonzaKral HonzaKral authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  threadedcomments/models.py
View
2  threadedcomments/models.py
@@ -10,7 +10,7 @@ class ThreadedComment(Comment):
parent = models.ForeignKey('self', null=True, blank=True, default=None,
related_name='children')
last_child = models.ForeignKey('self', null=True, blank=True)
- tree_path = models.CharField(max_length=2000, editable=False, blank=True, db_index=True)
+ tree_path = models.CharField(max_length=255, editable=False, db_index=True)
def _get_depth(self):
return len(self.tree_path.split(PATH_SEPARATOR))
Please sign in to comment.
Something went wrong with that request. Please try again.