Commit graph

25 commits

Author SHA1 Message Date
Serg Tereshchenko
f0fb6ebd8d chore: Update formatting 2023-02-09 10:38:43 +02:00
Gabriele Baldi
f69e3172bc
feat: Add support for ManyToManyFields 🧑‍🤝‍🧑 (#668) 2023-01-27 15:05:18 +02:00
Serg Tereshchenko
25b6011a1f style: Apply black 2021-09-18 10:55:39 +03:00
Mariusz Felisiak
5f66a44649
Removed unused code.
Unused since cc214e3c66.
2017-06-23 06:49:38 +02:00
Alex Marandon
352902556e Update deprecated imports with Django >= 1.7 2014-11-14 15:14:55 +01:00
deschler
59317a4c12 Consistent use of django version check. 2014-07-28 00:03:50 +02:00
Jacek Tomaszewski
8e10664745 Support AppConfigs in INSTALLED_APPS (close #252).
Thanks Warnar Boekkooi for initial commit.
2014-06-24 20:10:47 +02:00
deschler
d488d8c488 Support AppConfig introduced by Django 1.7. 2014-06-09 23:19:35 +02:00
wrwrwr
6ba37ec8c2 Adapt management commands and a debug message (by using `get_registered_models rather than directly registry`). 2013-02-10 18:28:06 +01:00
Dirk Eschler
e94bbcd3d2 Applied styleguide. We allow 100 chars now, let's use the space. 2013-02-06 11:52:46 +01:00
Dirk Eschler
9772391adc Moved initialization code back to models.py due to race condition on certain setups. Resolves issue #91. 2012-11-01 18:18:21 +01:00
Dirk Eschler
1af6f6de8a Added an empty models.py as Django requires this for tests. 2012-07-10 22:36:25 +00:00
Dirk Eschler
4579d831e5 Use app-level translation files in favour of a single project-level one. Adds an autoregister feature similiar to the one provided by Django's admin. A new setting MODELTRANSLATION_TRANSLATION_FILES keeps backwards compatibility with older versions. This is basically a merge from django-modeltranslation-wrapper with a few changes regarding how registration is triggered. See documentation for details. Resolves issues 58 and 71 (thanks to Jacek Tomaszewski, the author of modeltranslation-wrapper). 2012-07-10 12:58:08 +00:00
Dirk Eschler
77350b1e89 Factored out settings into a separate settings.py and consistently used an app specific settings prefix, TRANSLATION_REGISTRY now deprecated in favour of MODELTRANSLATION_TRANSLATION_REGISTRY. 2010-06-26 08:54:08 +00:00
Dirk Eschler
9b68efda05 Added setting to override the default language. Resolves issue 2. 2010-06-21 09:43:41 +00:00
Dirk Eschler
3f4a6eb472 Validated codebase against pep8. 2010-04-19 10:52:57 +00:00
Dirk Eschler
51f973657e Reverted removal of TRANSLATION_REGISTRY. Handled ImportError. 2010-03-17 10:00:29 +00:00
Dirk Eschler
5fd7306b7e Added workaround for swallowed ImportErrors by printing a traceback explicitly. Mostly resolves issue 17. 2010-03-06 01:40:26 +00:00
Dirk Eschler
6220314bc1 Code cleanups. 2010-03-02 22:17:39 +00:00
Dirk Eschler
0d0cb70eb5 Only print debug statements to stdout if the runserver or runserver_plus management commands are used. Resolves issue 16. 2010-03-02 16:47:19 +00:00
Dirk Eschler
37e0ec21d5 Removed TRANSLATION_REGISTRY setting. The translation.py is supposed to be kept in the project root and this has to be in PYTHONPATH anyway. 2010-03-02 15:34:49 +00:00
Dirk Eschler
4b564e147a Removed print statements so its usable with mod_wsgi. Resolves issue 7. 2010-02-23 14:44:23 +00:00
Peter Eschler
d964b29caf Added docs and implementation for the translation registry. 2009-02-17 23:55:17 +00:00
Peter Eschler
9678aa5c09 Temporary patch for resolving NotRegistered bug. 2009-02-17 23:26:49 +00:00
Peter Eschler
73ee7db101 Initial source and metadata import. 2009-02-17 21:08:19 +00:00