mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-10-19 14:28:58 +03:00
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
84658f6010 | ||
|
0e29871458 | ||
|
ffe235d3ac | ||
|
d7db2c58c0 | ||
|
6a7545a910 | ||
|
11bf4ee88a | ||
|
d3223eca53 |
@@ -33,7 +33,7 @@ Installation
|
||||
.. code-block:: bash
|
||||
|
||||
INSTALLED_APPS = [
|
||||
....
|
||||
...
|
||||
|
||||
'django.contrib.postgres',
|
||||
'localized_fields.apps.LocalizedFieldsConfig'
|
||||
@@ -369,6 +369,10 @@ To enable widgets in the admin, you need to inherit from ``LocalizedFieldsAdminM
|
||||
admin.site.register(MyLocalizedModel, MyLocalizedModelAdmin)
|
||||
|
||||
|
||||
.. image:: ./images/admin-widget.png
|
||||
:alt: The appearance of admin widget
|
||||
|
||||
|
||||
Frequently asked questions (FAQ)
|
||||
--------------------------------
|
||||
|
||||
|
BIN
images/admin-widget.png
Normal file
BIN
images/admin-widget.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 57 KiB |
@@ -22,6 +22,7 @@ class LocalizedFieldsAdminMixin:
|
||||
}
|
||||
|
||||
js = (
|
||||
'admin/js/jquery.init.js',
|
||||
'localized_fields/localized-fields-admin.js',
|
||||
)
|
||||
|
||||
|
2
setup.py
2
setup.py
@@ -33,7 +33,7 @@ with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8
|
||||
|
||||
setup(
|
||||
name='django-localized-fields',
|
||||
version='5.0a9',
|
||||
version='5.0a10',
|
||||
packages=find_packages(exclude=['tests']),
|
||||
include_package_data=True,
|
||||
license='MIT License',
|
||||
|
3
tox.ini
3
tox.ini
@@ -1,11 +1,12 @@
|
||||
[tox]
|
||||
envlist = py35-dj{111,20,21}, py36-dj{111,20,21}, py37-dj{111,20,21}
|
||||
envlist = py35-dj{111,20,21,22}, py36-dj{111,20,21,22}, py37-dj{111,20,21,22}
|
||||
|
||||
[testenv]
|
||||
deps =
|
||||
dj111: Django>=1.11,<1.12
|
||||
dj20: Django>=2.0,<2.1
|
||||
dj21: Django>=2.1,<2.2
|
||||
dj22: Django>=2.2,<2.3
|
||||
-rrequirements/test.txt
|
||||
setenv =
|
||||
DJANGO_SETTINGS_MODULE=settings
|
||||
|
Reference in New Issue
Block a user