Skip to content

Commit

Permalink
adds missing zotero-sync link closes #73
Browse files Browse the repository at this point in the history
  • Loading branch information
csae8092 committed Nov 18, 2024
1 parent ba3c33a commit 54b6390
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ static/ckeditor
secret.env
dump.sql
venv
staticfiles
staticfiles
.secret
6 changes: 3 additions & 3 deletions archiv/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ def __init__(self, *args, **kwargs):
)

if self.instance.pk:
self.fields[
"place"
].initial = self.instance.rvn_hapaplacename_beleg_beleg.all()
self.fields["place"].initial = (
self.instance.rvn_hapaplacename_beleg_beleg.all()
)

def save(self, *args, **kwargs):
instance = super(HapaBelegForm, self).save(*args, **kwargs)
Expand Down
4 changes: 4 additions & 0 deletions webpage/templates/webpage/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
<li>
<a class="dropdown-item" href="{% url 'archiv:hapaplacename_browse' %}">Ortslemma</a>
</li>
<li><hr class="dropdown-divider"></li>
<li>
<a class="dropdown-item" href="{% url 'bib:synczotero' %}">Zotero</a>
</li>
</ul>
</li>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion webpage/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def setUp(self):

def test_001_webpage(self):
rv = self.client.get("/")
self.assertEqual(rv.status_code, 302)
self.assertEqual(rv.status_code, 200)
rv = self.client.get("/accounts/login/")
self.assertContains(rv, "Username")
form_data = {"username": "temporary", "password": "temporary"}
Expand Down

0 comments on commit 54b6390

Please sign in to comment.