Skip to content

Commit

Permalink
Merge pull request #2 from utapyngo/unusedcode
Browse files Browse the repository at this point in the history
Remove unused code
  • Loading branch information
Mogost authored Jun 26, 2020
2 parents 959022d + b41c72d commit 136c91b
Show file tree
Hide file tree
Showing 27 changed files with 3 additions and 48 deletions.
2 changes: 0 additions & 2 deletions datatableview/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- encoding: utf-8 -*-

__name__ = 'datatableview'
__author__ = 'Tim Valenta'
__version_info__ = (0, 8, 3)
Expand Down
2 changes: 0 additions & 2 deletions datatableview/forms.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- encoding: utf-8 -*-

from django import forms
from django.forms import ValidationError
from django.forms.models import fields_for_model
Expand Down
2 changes: 0 additions & 2 deletions datatableview/helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- encoding: utf-8 -*-

"""
A collection of small helper functions for generating small pieces of datatable output in custom
methods on a view.
Expand Down
2 changes: 0 additions & 2 deletions datatableview/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# -*- encoding: utf-8 -*-

# Required for Django to recognize this app
2 changes: 0 additions & 2 deletions datatableview/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- encoding: utf-8 -*-

from .test_views import *
from .test_utils import *
from .test_helpers import *
1 change: 0 additions & 1 deletion datatableview/tests/example_project/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# -*- encoding: utf-8 -*-
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# -*- encoding: utf-8 -*-
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# -*- encoding: utf-8 -*-
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2017-12-22 07:25
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- encoding: utf-8 -*-

from django.db import models


Expand Down
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# -*- encoding: utf-8 -*-
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- encoding: utf-8 -*-
from distutils.version import StrictVersion

from django import get_version, template
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- encoding: utf-8 -*-

import re

from django.conf.urls import url
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- encoding: utf-8 -*-

from os import sep
import os.path
import re
Expand Down Expand Up @@ -1039,7 +1037,7 @@ def get_context_data(self, **kwargs):
context['blog_datatable'] = self.get_datatable(type="demo3")
return context

implementation = u'''
implementation = '''
from .models import Entry, Blog
class MultipleTablesDatatableView(DatatableView):
# Demo #1 and Demo # 2 will use variations of the same options
Expand Down Expand Up @@ -1163,7 +1161,7 @@ def get_context_data(self, **kwargs):
context['datatable'] = datatable
return context

implementation = u'''
implementation = '''
class EmbeddedTableDatatableView(TemplateView):
def get_context_data(self, **kwargs):
context = super(EmbeddedTableDatatableView, self).get_context_data(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- encoding: utf-8 -*-
"""
Django settings for example_project project.
Expand Down
2 changes: 0 additions & 2 deletions datatableview/tests/example_project/example_project/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- encoding: utf-8 -*-

from django.conf.urls import include, url

urlpatterns = (
Expand Down
2 changes: 0 additions & 2 deletions datatableview/tests/example_project/example_project/wsgi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- encoding: utf-8 -*-

# WSGI config for test_project project.
# It exposes the WSGI callable as a module-level variable named ``application``.
# For more information on this file, see
Expand Down
1 change: 0 additions & 1 deletion datatableview/tests/example_project/manage.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- encoding: utf-8 -*-

import os
import sys
Expand Down
1 change: 0 additions & 1 deletion datatableview/tests/test_app/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# -*- encoding: utf-8 -*-
2 changes: 0 additions & 2 deletions datatableview/tests/test_app/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- encoding: utf-8 -*-

from django.db import models


Expand Down
2 changes: 0 additions & 2 deletions datatableview/tests/test_helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- encoding: utf-8 -*-

from datetime import datetime
from functools import partial

Expand Down
2 changes: 0 additions & 2 deletions datatableview/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- encoding: utf-8 -*-

from .testcase import DatatableViewTestCase
from .test_app import models
from .. import utils
Expand Down
2 changes: 0 additions & 2 deletions datatableview/tests/test_views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- encoding: utf-8 -*-

import json

from django.urls import reverse
Expand Down
2 changes: 0 additions & 2 deletions datatableview/tests/testcase.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- encoding: utf-8 -*-

from django.apps import apps
from django.core.management import call_command
from django.test import TestCase, override_settings
Expand Down
2 changes: 0 additions & 2 deletions datatableview/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- encoding: utf-8 -*-

from collections import UserDict, defaultdict, namedtuple
from functools import reduce

Expand Down
4 changes: 1 addition & 3 deletions datatableview/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- encoding: utf-8 -*-

import datetime
import json
import logging
Expand Down Expand Up @@ -539,7 +537,7 @@ def chain_lookup(obj, bit):
if len(values) == 1:
value = values[0]
else:
value = u' '.join(map(str, values))
value = ' '.join(map(str, values))

return value, value

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- encoding: utf-8 -*-
"""setup.py: Django django-datatable-view-compat"""

from setuptools import setup, find_packages
Expand Down

0 comments on commit 136c91b

Please sign in to comment.