Modified inner query in related_for_model to work in SQLite.
[wolnelektury.git] / apps / catalogue / models.py
index db91190..7bddbbd 100644 (file)
@@ -207,7 +207,7 @@ class Fragment(models.Model):
     text = models.TextField()
     short_text = models.TextField(editable=False)
     _short_html = models.TextField(editable=False)
-    anchor = models.IntegerField()
+    anchor = models.CharField(max_length=120)
     book = models.ForeignKey(Book, related_name='fragments')
 
     objects = models.Manager()