Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Bug 1116337: Clear Django 1.5 lint output.
Browse files Browse the repository at this point in the history
WARNING: This commit breaks compatibility with Django 1.4.

Many of the warnings from the linter are actually spurious/overzealous
reminders about checking the existence of cleaned_data (bad), where we
actually were checking for the presence of specific elements in
cleaned_data (good), but which django-compat-lint can't handle. As
such they were left as-is, and only the actually-relevant changes
(which are fewer in number) have been made.
  • Loading branch information
ubernostrum committed Mar 31, 2015
1 parent 4eb0d7b commit b942599
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion kuma/demos/models.py
Expand Up @@ -21,7 +21,8 @@
from django.db import models
from django.db.models import Q
from django.db.models.fields.files import FieldFile, ImageFieldFile
from django.template.defaultfilters import slugify, filesizeformat
from django.template.defaultfilters import filesizeformat
from django.utils.text import slugify
from django.utils.translation import ugettext_lazy as _

import constance.config
Expand Down
2 changes: 1 addition & 1 deletion kuma/search/dbgettext_registration.py
@@ -1,4 +1,4 @@
from django.template.defaultfilters import slugify
from django.utils.text import slugify
from dbgettext.registry import registry, Options

from .models import Filter, FilterGroup
Expand Down
2 changes: 1 addition & 1 deletion kuma/search/models.py
Expand Up @@ -4,9 +4,9 @@
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.dispatch import receiver
from django.template.defaultfilters import slugify
from django.utils import timezone
from django.utils.functional import cached_property
from django.utils.text import slugify

from elasticsearch.exceptions import NotFoundError

Expand Down
2 changes: 1 addition & 1 deletion kuma/wiki/tests/__init__.py
Expand Up @@ -2,7 +2,7 @@
import time

from django.contrib.auth.models import User, Group, Permission
from django.template.defaultfilters import slugify
from django.utils.text import slugify

from html5lib.filters._base import Filter as html5lib_Filter
from nose.tools import nottest
Expand Down

0 comments on commit b942599

Please sign in to comment.