fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add index on popularity count
[wolnelektury.git]
/
src
/
catalogue
/
models
/
book.py
diff --git
a/src/catalogue/models/book.py
b/src/catalogue/models/book.py
index
0f664c4
..
8b85ec7
100644
(file)
--- a/
src/catalogue/models/book.py
+++ b/
src/catalogue/models/book.py
@@
-715,4
+715,4
@@
add_file_fields()
class BookPopularity(models.Model):
book = models.OneToOneField(Book, related_name='popularity')
- count = models.IntegerField(default=0)
+ count = models.IntegerField(default=0
, db_index=True
)