Version bump to 1.7.1.

Added Brazilian Portugese locale.
Fixed minor css scoping issue that caused stacked template items that were sortable to not display the 'move' cusor type.
Fixed comment line in manage.py for PEP8.
master
Brandon Taylor 2014-08-21 22:14:36 -04:00
parent cf490e7918
commit 5e307d687b
8 changed files with 14 additions and 15 deletions

8
adminsortable/__init__.py 100755 → 100644
View File

@ -1,14 +1,14 @@
VERSION = (1, 7, 0) # following PEP 386 VERSION = (1, 7, 1) # following PEP 386
DEV_N = None DEV_N = None
def get_version(): def get_version():
version = '{0}.{1}'.format(VERSION[0], VERSION[1]) version = '{}.{}'.format(VERSION[0], VERSION[1])
if VERSION[2]: if VERSION[2]:
version = '{0}.{1}'.format(version, VERSION[2]) version = '{}.{}'.format(version, VERSION[2])
try: try:
if VERSION[3]: if VERSION[3]:
version = '{0}.{1}'.format(version, VERSION[3]) version = '{}.{}'.format(version, VERSION[3])
except IndexError: except IndexError:
pass pass
return version return version

View File

View File

View File

@ -1,6 +1,6 @@
{% load i18n admin_modify adminsortable_tags %} {% load i18n admin_modify adminsortable_tags %}
{% load static from staticfiles %} {% load static from staticfiles %}
<div class="inline-group" id="{{ inline_admin_formset.formset.prefix }}-group"> <div class="inline-group" id="{{ inline_admin_formset.formset.prefix }}-group">TEST 2
<h2>{{ inline_admin_formset.opts.verbose_name_plural|title }} {% if inline_admin_formset.formset.initial_form_count > 1 %} - {% trans "drag and drop to change order" %}{% endif %}</h2> <h2>{{ inline_admin_formset.opts.verbose_name_plural|title }} {% if inline_admin_formset.formset.initial_form_count > 1 %} - {% trans "drag and drop to change order" %}{% endif %}</h2>
{{ inline_admin_formset.formset.management_form }} {{ inline_admin_formset.formset.management_form }}
{{ inline_admin_formset.formset.non_form_errors }} {{ inline_admin_formset.formset.non_form_errors }}

3
sample_project/manage.py 100755 → 100644
View File

@ -2,7 +2,8 @@
import os import os
import sys import sys
# Adds the adminsortable package from the cloned repository instead of site_packages # Adds the adminsortable package from the cloned repository instead of
# site_packages
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
if __name__ == "__main__": if __name__ == "__main__":

View File

@ -80,7 +80,6 @@ STATICFILES_DIRS = (
STATICFILES_FINDERS = ( STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
) )
# Make this unique, and don't share it with anybody. # Make this unique, and don't share it with anybody.
@ -90,7 +89,6 @@ SECRET_KEY = '8**a!c8$1x)p@j2pj0yq!*v+dzp24g*$918ws#x@k+gf%0%rct'
TEMPLATE_LOADERS = ( TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader', 'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader', 'django.template.loaders.app_directories.Loader',
# 'django.template.loaders.eggs.Loader',
) )
MIDDLEWARE_CLASSES = ( MIDDLEWARE_CLASSES = (

View File

@ -18,11 +18,11 @@ setup(
zip_safe=False, zip_safe=False,
include_package_data=True, include_package_data=True,
classifiers=['Development Status :: 5 - Production/Stable', classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment', 'Environment :: Web Environment',
'Framework :: Django', 'Framework :: Django',
'Intended Audience :: Developers', 'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License', 'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent', 'Operating System :: OS Independent',
'Programming Language :: Python', 'Programming Language :: Python',
'Topic :: Utilities'], 'Topic :: Utilities'],
) )