Commit graph

46 commits

Author SHA1 Message Date
Łukasz Chojnacki
64d112cc4f
Add explicit id field to avoid creating migration with DEFAULT_AUTO_FIELD set to BigAutoField (#142)
Co-authored-by: blag <blag@users.noreply.github.com>
2025-05-26 20:13:03 +02:00
blag
218b28b7aa
Let Django handle creation_date and last_changed (#145) 2025-05-26 19:59:18 +02:00
Viktor Kálmán
ac740e06f3
Support for Python 3.12 and up (#143)
* support for Python 3.12 and up

* removed unused deprecated ugettext imports

* fix django main being Python 3.12+

* missed some copypaste
2025-02-16 21:08:16 +01:00
Michał Pasternak
98bc9921b0 Remove trailing whitespace 2022-08-09 17:41:44 +02:00
Michał Pasternak
b6b0bf48ba Django 4.0 i18n fixes 2022-08-09 17:38:47 +02:00
Michał Pasternak
b138cafcfa Passing flake8 2022-08-08 00:49:40 +02:00
Michał Pasternak
2e3f009426
Merge branch 'master' into master 2022-08-08 00:36:05 +02:00
Hugo van Kemenade
e5e4e55d22 Upgrade Python syntax with pyupgrade --py37-plus 2022-06-15 15:47:52 +03:00
Michał Pasternak
e1e11c42cb Django 4.x fixes 2022-06-15 14:25:32 +02:00
Jannis Leidel
012fe061a8
Migrate to GitHub Actions. (#112)
* Add GitHub Actions test workflow.

* Update version map.

* Fix flake8

* Write coverage file.

* Fix typo.

* Add release workflow.

* Removed Travis cruft and updated other files.

* Update trove classifiers.

* Black setup.

* Remove unneeded twine check.

* Extend changelog.

* Fix six issue.

* Update tox.ini

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>

* Add 3.9.

* Add base python

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-12-09 09:55:35 +01:00
Kaustubh Bhalerao
68ac54a72b
Django 3.0.4 (#107)
Co-authored-by: Kaustubh Bhalerao <bhalerao@soildiagnostics.com>
2020-06-15 14:17:18 +07:00
Jannis Leidel
16afa49831
Use django.utils.six instead of six directly. 2019-01-27 21:54:57 +01:00
m-vdb
db5e4ec4b6 fix Template string representation for python3 2018-02-12 20:12:38 +01:00
Jannis Leidel
d7ecd93cce Port to Python 3 and removed legacy code 2016-09-20 10:34:59 +02:00
Michael Kutý
42590af744 fixed (fields.W340) null has no effect on ManyToManyField and import sorting 2015-07-06 22:16:43 +02:00
Jannis Leidel
2f27327beb Handle timezone on 1.4 correctly. 2012-05-07 10:57:23 +02:00
dfalk
9e81e53099 using ugettext 2011-08-26 01:28:49 +04:00
Jannis Leidel
05b109ec5a A bunch of flake8 fixees. 2011-07-01 15:50:04 +02:00
Jannis Leidel
a40204def7 Moved setttings over to use AppSettings class. 2011-07-01 15:44:09 +02:00
Jason Mayfield
825e3b95ff allow blank sites
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2011-06-15 16:17:47 +02:00
Jason Mayfield
e694b3dfb8 remove name uniqueness, with migration
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2011-06-15 16:15:31 +02:00
Jannis Leidel
5190186f3b BACKWARDS INCOMPATIBLE CHANGE. Refactored caching to just use Django's caching system, instead of its own. 2011-04-11 19:19:00 +02:00
Jannis Leidel
696099d2e3 Added Finnish translation, thanks Jaakko Holster. 2010-11-07 00:01:05 +01:00
Jannis Leidel
46ee615c3e Removed stray print statement. 2010-09-21 14:40:41 +02:00
Jannis Leidel
975e0a4087 Added DBTEMPLATES_AUTO_POPULATE_CONTENT setting to be able to disable to auto populating of template content. 2010-09-21 14:25:14 +02:00
Jannis Leidel
6d680a5100 Make sure of the correct backend when loading an initial version of a template. Possible fix for issue #8. 2010-09-21 14:21:30 +02:00
Jannis Leidel
6536b73a16 Cleaned up a little. 2010-06-24 11:43:41 +02:00
Jannis Leidel
982e6f2de7 Moved settings to own module. 2010-06-24 10:22:35 +02:00
Jannis Leidel
d1902401e7 Fixes issue 3 - Templates don't default to a site. Added ability to turn this off by setting DBTEMPLATES_ADD_DEFAULT_SITE to False. 2009-10-19 02:30:52 +02:00
Jannis Leidel
74c30f1eec Fixes an ambiguity problem with the cache invalidation 2009-08-19 20:55:07 +02:00
Jannis Leidel
c2c7f1da62 Moved doctests to own file, updated to actually work :)
committer: Jannis Leidel <jannis@leidel.info>

--HG--
extra : convert_revision : 0fc4c5c27f0b59f985a37668ea80f545fcfcb36f
2009-04-11 11:13:33 +02:00
leidel
b7011dce7e Made loader and cache backends site-aware. The filesystem cache backend now saves the files under <dir>/<site_domain>/<file_name>. The Django cache backend the Site id in the cache key. Template is now saved explicitly to backend if not existent in cache (e.g. if deleted manually or invalidated). Bumped version to 0.5.4.
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@88 cfb8ba98-e953-0410-9cff-959ffddf5974

committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>

--HG--
extra : convert_revision : 564571948adb06cdda915b665aa61d00b3118ed0
2008-12-26 17:39:48 +00:00
leidel
d984b45540 Removed old sync_templates.py script, use the django-admin.py sync_templates please. Removes unneeded code that registers the model with django-reversion manually. Updated docs after move from Google Code to Bitbucket.
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@65 cfb8ba98-e953-0410-9cff-959ffddf5974

committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>

--HG--
extra : convert_revision : 49af8f284937e75d0878354684fb1ce9addb04a0
2008-11-09 13:55:20 +00:00
leidel
41ff350628 Refactored template loader to use new backend architecture, that populates the cache by using signals.
Adds a BaseCacheBackend class with a simple API (load, save, remove) to be subclassed and specified in the DBTEMPLATES_CACHE_BACKEND settings.
Adds DjangoCacheBackend (uses Django's own caching mechanism) and FileSystemBackend (simple approach to filesystem saving).

git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@58 cfb8ba98-e953-0410-9cff-959ffddf5974

committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>

--HG--
extra : convert_revision : fde60d8ab2e834d898d9f662cf013d5546370eeb
2008-11-02 00:05:38 +00:00
Alexander Artemenko
a63dcabe08 Fill template with existing one, in case, if 'content' was leaved empty.
committer: Alexander Artemenko <svetlyak.40wt@gmail.com>

--HG--
extra : convert_revision : 36266b5b8a3ab9aba21ba3590b39b6854fe29262
2008-10-24 11:56:51 +04:00
leidel
a079b5a68d Made save() mathod arguments magic
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@52 cfb8ba98-e953-0410-9cff-959ffddf5974

committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>

--HG--
extra : convert_revision : 85e57e88ea1aa4b00a06de45db8ff30bbe07d950
2008-10-04 10:01:49 +00:00
leidel
9434a10e69 fixed error in custom model save() after changes in Django r8670, bumped version to 0.4.4
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@48 cfb8ba98-e953-0410-9cff-959ffddf5974

committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>

--HG--
extra : convert_revision : 9c0c8140843173ac78d682c467fc824b311a6e92
2008-09-02 13:03:51 +00:00
leidel
39446c08b3 remove oldforms stuff
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@46 cfb8ba98-e953-0410-9cff-959ffddf5974

committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>

--HG--
extra : convert_revision : c4a85e403e270c4749b620f8d4f1602ac8533164
2008-08-27 09:50:02 +00:00
leidel
2187c10537 added support for newforms-admin
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@35 cfb8ba98-e953-0410-9cff-959ffddf5974

committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>

--HG--
extra : convert_revision : 3be7558f64d204bc9cbb445cb6e1b8ae84369a82
2008-07-19 10:48:07 +00:00
leidel
b92b8d8749 updated tests to be not as old as the hills
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@33 cfb8ba98-e953-0410-9cff-959ffddf5974

committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>

--HG--
extra : convert_revision : 7873faa6befd6882a220cd1b5c3e8e78021ff4c0
2008-05-24 19:56:30 +00:00
leidel
11f73a007b stuuupid bug
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@30 cfb8ba98-e953-0410-9cff-959ffddf5974

committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>

--HG--
extra : convert_revision : eced669baec4919151e2c7c8f7834a7318fbc4a0
2008-05-13 23:42:57 +00:00
leidel
a9df6d73b1 new management command 'sync_templates' for syncing the templates bidirectional
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@27 cfb8ba98-e953-0410-9cff-959ffddf5974

committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>

--HG--
extra : convert_revision : 252aa837acd100f5a4588f12d7ea33c5adf30b3c
2008-05-13 22:34:38 +00:00
leidel
d4a634ecb3 added support for newforms-admin with patch by simon.hedberg, thanks
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@21 cfb8ba98-e953-0410-9cff-959ffddf5974

committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>

--HG--
extra : convert_revision : 8127ffb5265757b42f66a548c30def925506411c
2008-02-27 19:03:22 +00:00
leidel
91e756856e changed __str__ to __unicode__ in Template model
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@18 cfb8ba98-e953-0410-9cff-959ffddf5974

committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>

--HG--
extra : convert_revision : e81cee8e9bbe7af0651193ab5165f3287a77af77
2007-07-30 20:39:37 +00:00
leidel
e59bb89f6c again: refactoring as a standalone application
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@13 cfb8ba98-e953-0410-9cff-959ffddf5974

committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>

--HG--
extra : convert_revision : 7974964ff8ace563a81a23cd6308934a2461e5fb
2007-07-20 14:52:00 +00:00
leidel
bbc00a779b again: refactoring as a standalone application
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@12 cfb8ba98-e953-0410-9cff-959ffddf5974

committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>

--HG--
extra : convert_revision : 5fc12102108671ddb3b9890c9091bd39cb446728
2007-07-20 14:30:48 +00:00