Skip to content

Commit

Permalink
Fix product tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaboiangiu committed Oct 23, 2018
1 parent 10a2747 commit 1884b11
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion insitu/templates/_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

{% block head %}
{% endblock %}
<link rel="shortcut icon" href="{% static "/images/favicon.png" %}" type="image/x-icon" />
<link rel="shortcut icon" href="{% static 'images/favicon.png' %}" type="image/x-icon" />

<title>
{% block title %}
Expand Down
2 changes: 1 addition & 1 deletion insitu/tests/test_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def setUp(self):

def test_create_product_fields_required(self):
data = {}
resp = self.client.post(reverse('product:add'), data)
resp = self.client.post(reverse('product:add'), data, follow=True)
self.check_required_errors(resp, self.errors)

def test_get_create_product(self):
Expand Down
4 changes: 3 additions & 1 deletion insitu/views/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
ProtectedView,
ProtectedTemplateView, ProtectedDetailView,
ProtectedUpdateView, ProtectedCreateView,
ProtectedDeleteView)
ProtectedDeleteView,
LoggingProtectedCreateView,
)
from insitu.views.protected.permissions import (
IsAuthenticated,
IsSuperuser,
Expand Down

0 comments on commit 1884b11

Please sign in to comment.