diff --git a/djangocms_blog/urls.py b/djangocms_blog/urls.py
index 2dfec6f..561a56c 100644
--- a/djangocms_blog/urls.py
+++ b/djangocms_blog/urls.py
@@ -2,9 +2,9 @@
from __future__ import absolute_import, print_function, unicode_literals
from django.conf.urls import patterns, url
-from djangocms_blog.settings import get_setting
from .feeds import LatestEntriesFeed, TagFeed
+from .settings import get_setting
from .views import (
AuthorEntriesView, CategoryEntriesView, PostArchiveView, PostDetailView, PostListView,
TaggedListView,
diff --git a/tests/test_models.py b/tests/test_models.py
index 75e758d..7a59c9a 100644
--- a/tests/test_models.py
+++ b/tests/test_models.py
@@ -43,12 +43,12 @@ class AdminTest(BaseTest):
# Add view only contains the apphook selection widget
response = post_admin.add_view(request)
self.assertNotContains(response, 'Blog / sample_app')
+ self.assertContains(response, '' % self.app_config_1.pk)
# Changeview is 'normal'
response = post_admin.change_view(request, str(post.pk))
self.assertContains(response, '')
- self.assertContains(response, '')
+ self.assertContains(response, '' % self.app_config_1.pk)
def test_admin_blogconfig_views(self):
post_admin = admin.site._registry[BlogConfig]
@@ -64,7 +64,6 @@ class AdminTest(BaseTest):
self.assertContains(response, 'djangocms_blog.cms_appconfig.BlogConfig')
self.assertContains(response, '')
# check that all the form fields are visible in the admin
- response.render()
for fieldname in BlogConfigForm.base_fields:
self.assertContains(response, 'id="id_config-%s"' % fieldname)
self.assertContains(response, '')