Commit graph

116 commits

Author SHA1 Message Date
Serhii Tereshchenko
9d9a2ab8b0 chore: Update code for minumum python 3.9 2024-06-01 10:37:33 +03:00
Matthias Schoettle
d2c16feba9
fix(types): Make admin classes generic as their super classes (#737)
Co-authored-by: Serhii Tereshchenko <serg.partizan@gmail.com>
2024-06-01 10:18:58 +03:00
Serhii Tereshchenko
67d26e6f63
chore: Use poetry deps for testings (#741)
Also, add lsp optional group to install python-lsp-server
2024-06-01 09:03:48 +03:00
Serhii Tereshchenko
b97c22c197
fix(types): Fix fields type (#739)
Most likely, this won't cause any troubles for standard use-cases. But, if you used `get_options_for_model()` and `.fields` from this instance, you need to rename it to `.all_fields`.

BREAKING CHANGE: Rename `fields` (dict with set of TranslationField) to `all_fields`, on the TranslationOptions instance.
2024-05-26 07:29:52 +03:00
Victorien
a9e95e8c78
feat: Add types
Refs #716
2024-04-04 11:27:00 +03:00
Serhii Tereshchenko
8742ad3554 style: Reformat files (use double quotes) 2023-11-25 13:48:57 +02:00
Serhii Tereshchenko
86cfa3f913 chore: Sort imports 2023-05-30 17:51:20 +03:00
Serhii Tereshchenko
dc58cb8106 chore: Apply black 2023-05-30 17:42:28 +03:00
Serhii Tereshchenko
3c6cbd59a7 chore: Update old syntax
pyupgrade --keep-percent-format --py38-plus modeltranslation/**/*.py
2023-05-30 17:38:48 +03:00
Serg Tereshchenko
f0fb6ebd8d chore: Update formatting 2023-02-09 10:38:43 +02:00
Philipp
fcfbd5ce05
fix: Fix admin widget for fk fields (#662)
Refs #660
2022-11-22 16:21:00 +02:00
Lukáš Letovanec
d414cd3e07
feat: Support UserAdmin add_fieldsets
Refs #654
2022-10-12 12:20:57 +00:00
Tim Gates
ab79ec8512
docs: Fix a few typos (#651)
There are small typos in:
- docs/modeltranslation/admin.rst
- docs/modeltranslation/installation.rst
- docs/modeltranslation/related_projects.rst
- modeltranslation/admin.py
- modeltranslation/management/commands/sync_translation_fields.py
- modeltranslation/tests/models.py

Fixes:
- Should read `similar` rather than `similiar`.
- Should read `whose` rather than `whos`.
- Should read `original` rather than `orginal`.
- Should read `missing` rather than `missings`.
- Should read `consistent` rather than `consistant`.
- Should read `compatibility` rather than `compatibiliy`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
2022-09-03 21:56:06 +03:00
Serg Tereshchenko
25b6011a1f style: Apply black 2021-09-18 10:55:39 +03:00
Serg Tereshchenko
177e896a4e chore: Remove unused jquery.mb.browser. 2020-09-30 23:03:23 +03:00
Can Mustafa Özdemir
48e7f59895
fix(admin): Fix custom widget initialization problem 2020-06-13 10:41:18 +03:00
Thijs Boehme
6f28721fb7 Change ugettext_lazy to gettext_lazy
Other instances which were skipped in the first commit
2020-03-06 16:37:55 +01:00
hdk5
1b95b7d679
Fix TypeError in admin when all fields are read-only 2020-02-26 16:18:51 +03:00
Sergey Tereschenko
686e020974 Change permissions to 644 2019-12-18 00:30:13 +02:00
Dawid Mydło
0aeede91d6 Fix admin exclude usage 2019-10-03 16:21:12 +02:00
Constantine Fedenko
6e57ca7dc4 Fixed 'formfield_for_dbfield' method signature. See #510 2019-07-02 13:29:14 +03:00
Misha Kalyna
ae26aa0994 use get_fields hook 2019-05-29 12:16:36 +02:00
Sergey Tereschenko
447a60f1cc fix TabbedTranslationAdmin in django 2.2 (close #506) 2019-04-18 01:01:15 +03:00
partizan
4a4f3a0dfa
Merge pull request #500 from numrut/admin_m2m
Fix #332 fields list bug in admin.TranslationAdmin
2019-03-31 21:43:29 +03:00
Melvyn Sopacua
1a116e9d5c feat(make-jquery-urls-configurable): Add settings
Add 3 new settings, without prefix that deal with external resources.
This allows software with elevated security restrictions to function
properly.
2019-03-30 14:31:31 +01:00
Yevhen Amelin
5e0e95a7e7 Fix fields list bug in admin.TranslationAdmin 2019-03-28 14:29:19 +02:00
Sergey Tereschenko
0dbac334b6 cleanup: remove old workarounds 2019-02-12 23:42:10 +02:00
Borislav Petrović
222e04822e fix: copy form defined widget attrs 2018-06-29 16:25:12 +02:00
Matthias Kestenholz
dad7cc7ba6 Slightly reformat code to avoid flake8 errors
These changes hopefully fix the Travis CI build.
2016-02-20 11:21:07 +01:00
oliphunt
28eb14e4fa CS fixes. 2015-05-26 12:18:45 +01:00
oliphunt
9480dba1c5 Add mt-bidi class to input fields for bi-directional languages. 2015-05-21 12:54:38 +01:00
Fabio Caccamo
1fc52f9918 add missed jquery browser plugin 2015-03-12 18:01:52 +01:00
Fabio Caccamo
4d1f5af129 add missed jquery browser plugin 2015-03-12 17:58:56 +01:00
Alex Marandon
352902556e Update deprecated imports with Django >= 1.7 2014-11-14 15:14:55 +01:00
Dirk Eschler
bd0ea50c50 Set TabbedTranslationAdmin class depending on Django version. Added a new class for Django 1.5 which depends on older jquery/jquery-ui versions. Updated the jquery/jquery-ui versions for the existing admin classes (ref #270). 2014-10-29 17:01:33 +01:00
Jacek Tomaszewski
369293b14d Get language getting from the field attribute rather than name.
The method seems to be not used anymore, but fix it nevertheless.
2014-10-24 20:23:10 +02:00
deschler
59317a4c12 Consistent use of django version check. 2014-07-28 00:03:50 +02:00
deschler
bc498f68d6 Removed superfluous do's from private api. 2014-07-27 23:53:30 +02:00
deschler
d488d8c488 Support AppConfig introduced by Django 1.7. 2014-06-09 23:19:35 +02:00
Jacek Tomaszewski
cbca220103 Capitalize group_fieldsets titles (close #234). 2014-03-13 20:02:22 +01:00
Francesc Arpí Roca
ef6a8b2e81 Remove the http protocol. So we don't get warning about not secure elements 2014-01-22 17:23:02 +01:00
Jacek Tomaszewski
76da9bf92e Some python3 compatibility fixes (close #220). 2013-12-29 11:00:53 +01:00
Jacek Tomaszewski
6b0106f1a5 Fix admin inlines recursion problem in Django 1.6 (ref #214). 2013-11-15 21:25:13 +01:00
deschler
23d014e395 Merge branch 'ultimate-null-formfield-solution' 2013-11-07 23:20:55 +01:00
Bas Peschier
e88a8cd08b Don't get too excited with the flake8-patching 2013-10-29 12:16:53 +01:00
Bas Peschier
d7ef747db4 Fix flake8 error 2013-10-29 12:15:11 +01:00
Bas Peschier
2379458f6d Fix recursion problem with fieldset handling in Django 1.6 2013-10-29 11:33:37 +01:00
Jacek Tomaszewski
71af06c7c9 Add configurable formfields (close #211, ref #163, #187).
This will hopefully at last resolve the problem with nullable CharFields.
2013-10-23 15:40:45 +02:00
Jacek Tomaszewski
90baf37129 Don't display ClearableWidgetWrapper for required fields (close #209). 2013-10-18 17:45:43 +02:00
Jacek Tomaszewski
656dca3e40 Show None checkboxes on form fields, especially admin (close #187). 2013-10-10 23:05:26 +02:00