mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-16 22:10:30 +00:00
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.
This commit is contained in:
parent
cf490e7918
commit
5e307d687b
8 changed files with 14 additions and 15 deletions
8
adminsortable/__init__.py
Executable file → Normal file
8
adminsortable/__init__.py
Executable file → Normal file
|
|
@ -1,14 +1,14 @@
|
|||
VERSION = (1, 7, 0) # following PEP 386
|
||||
VERSION = (1, 7, 1) # following PEP 386
|
||||
DEV_N = None
|
||||
|
||||
|
||||
def get_version():
|
||||
version = '{0}.{1}'.format(VERSION[0], VERSION[1])
|
||||
version = '{}.{}'.format(VERSION[0], VERSION[1])
|
||||
if VERSION[2]:
|
||||
version = '{0}.{1}'.format(version, VERSION[2])
|
||||
version = '{}.{}'.format(version, VERSION[2])
|
||||
try:
|
||||
if VERSION[3]:
|
||||
version = '{0}.{1}'.format(version, VERSION[3])
|
||||
version = '{}.{}'.format(version, VERSION[3])
|
||||
except IndexError:
|
||||
pass
|
||||
return version
|
||||
|
|
|
|||
0
adminsortable/locale/pt_BR/LC_MESSAGES/django.mo
Executable file → Normal file
0
adminsortable/locale/pt_BR/LC_MESSAGES/django.mo
Executable file → Normal file
0
adminsortable/locale/pt_BR/LC_MESSAGES/django.po
Executable file → Normal file
0
adminsortable/locale/pt_BR/LC_MESSAGES/django.po
Executable file → Normal file
|
|
@ -1,6 +1,6 @@
|
|||
{% load i18n admin_modify adminsortable_tags %}
|
||||
{% 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>
|
||||
{{ inline_admin_formset.formset.management_form }}
|
||||
{{ inline_admin_formset.formset.non_form_errors }}
|
||||
|
|
|
|||
Binary file not shown.
3
sample_project/manage.py
Executable file → Normal file
3
sample_project/manage.py
Executable file → Normal file
|
|
@ -2,7 +2,8 @@
|
|||
import os
|
||||
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__))))
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
2
sample_project/sample_project/settings.py
Executable file → Normal file
2
sample_project/sample_project/settings.py
Executable file → Normal file
|
|
@ -80,7 +80,6 @@ STATICFILES_DIRS = (
|
|||
STATICFILES_FINDERS = (
|
||||
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
||||
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
|
||||
)
|
||||
|
||||
# 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 = (
|
||||
'django.template.loaders.filesystem.Loader',
|
||||
'django.template.loaders.app_directories.Loader',
|
||||
# 'django.template.loaders.eggs.Loader',
|
||||
)
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
|
|
|
|||
14
setup.py
14
setup.py
|
|
@ -18,11 +18,11 @@ setup(
|
|||
zip_safe=False,
|
||||
include_package_data=True,
|
||||
classifiers=['Development Status :: 5 - Production/Stable',
|
||||
'Environment :: Web Environment',
|
||||
'Framework :: Django',
|
||||
'Intended Audience :: Developers',
|
||||
'License :: OSI Approved :: Apache Software License',
|
||||
'Operating System :: OS Independent',
|
||||
'Programming Language :: Python',
|
||||
'Topic :: Utilities'],
|
||||
'Environment :: Web Environment',
|
||||
'Framework :: Django',
|
||||
'Intended Audience :: Developers',
|
||||
'License :: OSI Approved :: Apache Software License',
|
||||
'Operating System :: OS Independent',
|
||||
'Programming Language :: Python',
|
||||
'Topic :: Utilities'],
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue