diff --git a/knowledge/forms.py b/knowledge/forms.py index 09dfd19..fccba99 100644 --- a/knowledge/forms.py +++ b/knowledge/forms.py @@ -20,7 +20,7 @@ def QuestionForm(user, *args, **kwargs): on the status of the passed in user. """ - if user.is_anonymous(): + if user.is_anonymous: if not settings.ALLOW_ANONYMOUS: return None else: @@ -81,7 +81,7 @@ def ResponseForm(user, question, *args, **kwargs): (user.is_staff or question.user == user): return None - if user.is_anonymous(): + if user.is_anonymous: if not settings.ALLOW_ANONYMOUS: return None else: diff --git a/knowledge/managers.py b/knowledge/managers.py index 3d4b8d9..e9efcfd 100644 --- a/knowledge/managers.py +++ b/knowledge/managers.py @@ -7,7 +7,7 @@ class QuestionManager(models.Manager): # return super(QuestionManager, self).get_query_set(*args, **kwargs) def can_view(self, user): - qs = super(QuestionManager, self).get_query_set()\ + qs = super(QuestionManager, self).get_queryset()\ .select_related('user') if user.is_staff or user.is_superuser: @@ -27,7 +27,7 @@ class ResponseManager(models.Manager): # .select_related('question', 'user') def can_view(self, user): - qs = super(ResponseManager, self).get_query_set()\ + qs = super(ResponseManager, self).get_queryset()\ .select_related('question', 'user') if user.is_staff or user.is_superuser: diff --git a/knowledge/migrations/0001_initial.py b/knowledge/south_migrations/0001_initial.py similarity index 100% rename from knowledge/migrations/0001_initial.py rename to knowledge/south_migrations/0001_initial.py diff --git a/knowledge/migrations/0002_auto__add_field_question_alert__add_field_response_alert.py b/knowledge/south_migrations/0002_auto__add_field_question_alert__add_field_response_alert.py similarity index 100% rename from knowledge/migrations/0002_auto__add_field_question_alert__add_field_response_alert.py rename to knowledge/south_migrations/0002_auto__add_field_question_alert__add_field_response_alert.py diff --git a/knowledge/migrations/0003_auto__add_unique_category_slug.py b/knowledge/south_migrations/0003_auto__add_unique_category_slug.py similarity index 100% rename from knowledge/migrations/0003_auto__add_unique_category_slug.py rename to knowledge/south_migrations/0003_auto__add_unique_category_slug.py diff --git a/knowledge/migrations/__init__.py b/knowledge/south_migrations/__init__.py similarity index 100% rename from knowledge/migrations/__init__.py rename to knowledge/south_migrations/__init__.py diff --git a/knowledge/templates/django_knowledge/ask.html b/knowledge/templates/django_knowledge/ask.html index e4c355e..bd561df 100644 --- a/knowledge/templates/django_knowledge/ask.html +++ b/knowledge/templates/django_knowledge/ask.html @@ -1,7 +1,7 @@ {% extends 'django_knowledge/inner.html' %} {% load i18n %} -{% load url from future %} +{% load static %} {% block title %}{% trans "Ask a Question" %}{% endblock title %} diff --git a/knowledge/templates/django_knowledge/base.html b/knowledge/templates/django_knowledge/base.html index e3a3d6c..6534937 100644 --- a/knowledge/templates/django_knowledge/base.html +++ b/knowledge/templates/django_knowledge/base.html @@ -3,22 +3,22 @@ - + {% load static %} {% block title %}{% endblock title %} | Support Center - - - + + +
- + {% block knowledge_inner %} {% endblock knowledge_inner %}
- + diff --git a/knowledge/templates/django_knowledge/form.html b/knowledge/templates/django_knowledge/form.html index 91377e7..10ddbd6 100644 --- a/knowledge/templates/django_knowledge/form.html +++ b/knowledge/templates/django_knowledge/form.html @@ -1,5 +1,5 @@ {% load i18n %} -{% load url from future %} +{% load static %}
{% csrf_token %} @@ -8,7 +8,7 @@
- + {% if field.field.help_text %}
{{ field.field.help_text }} diff --git a/knowledge/templates/django_knowledge/index.html b/knowledge/templates/django_knowledge/index.html index 51e0a30..1a07bb0 100644 --- a/knowledge/templates/django_knowledge/index.html +++ b/knowledge/templates/django_knowledge/index.html @@ -1,7 +1,7 @@ {% extends 'django_knowledge/inner.html' %} {% load i18n %} -{% load url from future %} +{% load static %} {% block title %}{% trans "Support" %}{% endblock title %} diff --git a/knowledge/templates/django_knowledge/inner.html b/knowledge/templates/django_knowledge/inner.html index e3bc724..7a2c85e 100644 --- a/knowledge/templates/django_knowledge/inner.html +++ b/knowledge/templates/django_knowledge/inner.html @@ -1,12 +1,12 @@ {% extends BASE_TEMPLATE|default:'django_knowledge/base.html' %} {% load i18n %} -{% load url from future %} +{% load static %} {% block knowledge_inner %}
- + {% include "django_knowledge/welcome.html" %}