fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update to new librarian api for html, txt.
[wolnelektury.git]
/
src
/
catalogue
/
models
/
snippet.py
diff --git
a/src/catalogue/models/snippet.py
b/src/catalogue/models/snippet.py
index
4c25b8c
..
ec7e2f9
100644
(file)
--- a/
src/catalogue/models/snippet.py
+++ b/
src/catalogue/models/snippet.py
@@
-7,6
+7,7
@@
from search.utils import UnaccentSearchVector
class Snippet(models.Model):
book = models.ForeignKey('Book', models.CASCADE)
sec = models.IntegerField()
+ anchor = models.CharField(max_length=64)
text = models.TextField()
search_vector = SearchVectorField()