summaryrefslogtreecommitdiff
path: root/app/books
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-02-22 20:52:26 -0600
committerluxagraf <sng@luxagraf.net>2019-02-22 20:52:26 -0600
commit6fb35690da12077fda7d6cdc1e4da302db755963 (patch)
tree167dd841209c509fddcc74d9f6e4e58eaeca12f4 /app/books
parent5813a02145c8f95c04a2fedfd9555b402d443e6b (diff)
changed book detail template slightly, added afflink
Diffstat (limited to 'app/books')
-rw-r--r--app/books/migrations/0009_book_afflink.py18
-rw-r--r--app/books/models.py1
2 files changed, 19 insertions, 0 deletions
diff --git a/app/books/migrations/0009_book_afflink.py b/app/books/migrations/0009_book_afflink.py
new file mode 100644
index 0000000..6130807
--- /dev/null
+++ b/app/books/migrations/0009_book_afflink.py
@@ -0,0 +1,18 @@
+# Generated by Django 2.1.5 on 2019-02-22 21:51
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('books', '0008_auto_20190222_2140'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='book',
+ name='afflink',
+ field=models.CharField(blank=True, max_length=400, null=True),
+ ),
+ ]
diff --git a/app/books/models.py b/app/books/models.py
index 5df74f1..00c0bdf 100644
--- a/app/books/models.py
+++ b/app/books/models.py
@@ -32,6 +32,7 @@ class Book(models.Model):
publish_date = models.CharField(max_length=40, blank=True, null=True)
publish_place = models.CharField(max_length=100, blank=True, null=True)
openlib_url = models.CharField(max_length=400, blank=True, null=True)
+ afflink = models.CharField(max_length=400, blank=True, null=True)
RATINGS = (
('1', "1 Star"),
('2', "2 Stars"),