Brian Kohan
39a27e8c7c
Add polymorphic guard to solve deletion problems.
...
Includes docs and robust tests.
2025-12-21 00:15:47 -08:00
Jesús Leganés-Combarro 'piranna
79cd97c47a
Add a get_child_inlines() hook to inline admin classes
...
Co-authored-by: Jesús Leganés-Combarro 'piranna <piranna@gmail.com>
Co-authored-by: Brian Kohan <bckohan@gmail.com>
2025-12-07 22:54:12 -08:00
Brian Kohan
2fbd9b9d64
add playwright test capability, fix #546
...
Update src/polymorphic/tests/settings.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Update src/polymorphic/tests/test_admin.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Update src/polymorphic/tests/test_admin.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
address copilot code review suggestions
2025-12-01 14:49:26 -08:00
Brian Kohan
c26b84a85e
support django 6 and python 3.14, update databases in CI
2025-11-29 22:29:06 -08:00
Brian Kohan
e5caa70e59
add justfile interface for command package management tasks, lint docs, change precommit to use just interface and update lint GHA accordingly
2025-08-24 17:33:58 -07:00
Chris Glass
c0874c5e90
unrelated: add .venv to gitignore
2020-08-14 16:28:30 +02:00
Lukasz Zdun
14b31bed4c
#37 : Fix model subclass ___ selector for abstract/proxy models
2018-09-29 09:16:16 +02:00
Charlie Denton
a57b067b42
Compile coverage for coveralls command on travis
2017-04-14 01:26:24 +01:00
Diederik van der Boor
2582613b77
Add wheel support
2014-10-14 16:30:18 +02:00
Diederik van der Boor
7889293227
Applied an overal cleanup of the .gitignore file
2013-04-08 11:30:50 +02:00
Diederik van der Boor
1df5b5ff03
Add runtests script
...
Allow `python setup.py test` too.
Fix tox invocation now that `manage.py` has moved.
2013-04-05 09:52:53 +02:00
floppya
8b6e3a0979
Ignore egg-info
2013-03-23 14:14:13 -06:00
Chris Glass
7b49fd133f
Added packaging stuff to gitignore, created MANIFEST include (to ship the
...
license and docs etc...)
2011-04-27 11:20:34 +02:00
Chris Glass
a0f1fe455a
Added stuff to gitignore
2011-04-27 11:09:54 +02:00
Bert Constantin
6628145af7
removed __getattribute__ hack from PolymorphicModel.
...
A somewhat cleaner solution is now used (through __init__) which
also completely removes the performance impact of __getattribute__.
2010-10-20 09:31:42 +02:00
Bert Constantin
a87481b8b5
polymorphic_dumpdata management command functionality removed;
...
the regular Django dumpdata command now automatically works correctly
for polymorphic models and all Django versions
(this is handled by PolymorphicModelBase now).
Testing for dumpdata has been added.
2010-10-20 09:31:42 +02:00
Bert Constantin
b1905026bc
Documentation updated.
...
Test_all_versions script added.
Some minor misc changes.
Added polybench.
2010-10-20 09:31:36 +02:00
Bert Constantin
01bdb2f9b0
- renamed ShowField* to ShowFieldType, ShowFieldContent, ShowFieldTypeAndContent, in order to reflect better what they do.
...
- by default, django_polymorphic's pretty printing of querysets/objects (via ShowField*) is not used anymore
- ShowField mixins now also show the annotations (after the regular fields, prepended by "Ann:")
- cleaned up implementation.
2010-10-19 21:28:33 +02:00
Bert Constantin
7e584632b8
fix unnecessary field-name/model-name conflicts (i.e. field_name == model_name.lower() )
...
=> __init__ + __getattribute__ now handle only the Django inheritance
references that are needed ('modela_ptr', 'modelc' etc.), avoiding
unnecessary conflicts with field names.
2010-02-18 20:05:17 +01:00
Bert Constantin
cf42a8111b
setup.py added. Thanks to Andrew Ingram.
2010-02-04 15:28:56 +01:00
Bert Constantin
c10577c32f
queryset aggregate() and extra() methods implemented, testcases, docs
2010-02-04 15:28:55 +01:00
Bert Constantin
e51425f5df
updated docs
2010-01-28 20:39:07 +01:00
Bert Constantin
c2b420aea0
IMPORTANT: DB schema changed: Django's ContentType is now used
...
instead of app-label and model-name (suggested by Ilya Semenov in issue 3).
This is a cleaner and more efficient solution, and applabel/modelname
are not stored redundantly in additional tables any more (the polymorphic models).
This should be the final DB schema now (sorry for any inconvenience).
Also some minor documentation updates.
2010-01-26 22:31:56 +01:00
Bert Constantin
09fef376ac
manage.py: prepend ./libraries-local to sys.path, allowing us to test any version of Django (after being copied there)
2010-01-24 16:24:10 +01:00
Bert Constantin
f77ebe8149
Model___field notation now automatically chooses correct application + separated translation into own function
2010-01-23 06:42:01 +01:00
Bert Constantin
576a16f2ab
initial commit
2010-01-15 21:13:36 +01:00