--- a/sphinx_django/sphinxcomment/models.py Thu Sep 30 15:59:32 2010 +0530
+++ b/sphinx_django/sphinxcomment/models.py Fri Oct 15 15:59:28 2010 +0530
@@ -7,12 +7,12 @@
mutable = True
class Element(models.Model):
- chapter_name = models.CharField('Chapter name', max_length=100, editable=False,
- db_index=True)
-
+ paragraph_id = models.CharField('Paragraph Id', max_length=100, editable=False, primary_key=True)
+ chapter_name = models.CharField('Chapter name', max_length=100, editable=False,db_index=True)
+
def __unicode__(self):
- return self.chapter_name
+ return self.paragraph_id
class Comment(models.Model):
element = models.ForeignKey(Element,