Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the package for Django 3.1+ #246

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion datatableview/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__name__ = 'datatableview'
__author__ = 'Autumn Valenta'
__version_info__ = (0, 9, 0)
__version_info__ = (0, 9, 1)
__version__ = '.'.join(map(str, __version_info__))
__date__ = '2013/11/14 2:00:00 PM'
__credits__ = ['Autumn Valenta', 'Steven Klass']
Expand Down
4 changes: 1 addition & 3 deletions datatableview/columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
except ImportError:
pass

import django
from django.db import models
from django.db.models import Model, Manager, Q
from django.db.models.fields import FieldDoesNotExist
from django.core.exceptions import ObjectDoesNotExist
from django.core.exceptions import FieldDoesNotExist, ObjectDoesNotExist
from django.utils.encoding import smart_text
from django.utils.safestring import mark_safe
try:
Expand Down
1 change: 0 additions & 1 deletion datatableview/compat.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- encoding: utf-8 -*-
""" Backports of code left behind by new versions of Django. """

import django
from django.utils.html import escape
try:
from django.utils.encoding import escape_uri_path as django_escape_uri_path
Expand Down
2 changes: 1 addition & 1 deletion datatableview/datatables.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
except ImportError:
pass

from django.db.models.fields import FieldDoesNotExist
from django.core.exceptions import FieldDoesNotExist
from django.template.loader import render_to_string
from django.db.models import QuerySet
try:
Expand Down
3 changes: 1 addition & 2 deletions datatableview/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
pass

from django.db import models
from django.db.models.fields import FieldDoesNotExist
from django.core.exceptions import FieldDoesNotExist
from django.utils.text import smart_split


Expand Down Expand Up @@ -109,4 +109,3 @@ def contains_plural_field(model, fields):

def split_terms(s):
return filter(None, map(lambda t: t.strip("'\" "), smart_split(s)))

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
long_description = f.read()

setup(name='django-datatable-view',
version='0.9.0',
version='0.9.1',
description='This package is used in conjunction with the jQuery plugin '
'(http://http://datatables.net/), and supports state-saving detection'
' with (http://datatables.net/plug-ins/api). The package consists of '
Expand Down