183d69ae87
Merge pull request #14 from thenewguy/master
Chris Glass
2013-01-31 12:45:32 -08:00
9de33bd172
remove trailing '/'
gordon
2012-12-16 19:22:02 -05:00
e5eaaa987c
Include templates in install.
Ben Konrath
2012-12-10 18:02:12 +01:00
eee5dda5ba
Small admin documentation fix.
Ben Konrath
2012-12-10 15:41:45 +01:00
f687dc18b1
SQL optimization, avoid query in pre_save_polymorphic()
Diederik van der Boor
2012-11-15 10:42:02 +01:00
28b8885236
Merge pull request #10 from vdboor/master
Chris Glass
2012-08-06 01:39:08 -07:00
bba8db1210
Also update the DOCS for the get_child_models() admin change.
Diederik van der Boor
2012-07-24 21:55:01 +02:00
0d5f2fd943
Change the child model registration to fix raw_id_fields.
Diederik van der Boor
2012-07-24 21:50:52 +02:00
0b608cc67e
Minor extension: allow apps to override the type label in the add form easily
Diederik van der Boor
2012-07-18 00:50:43 +02:00
8d426d9243
Remove abc marker because methods are no longer abstract
Diederik van der Boor
2012-07-13 18:29:02 +02:00
d5b1b6b56c
Fix settings.py for Django 1.4
Diederik van der Boor
2012-07-13 17:44:37 +02:00
a6d62ed630
Update the example app to demonstrate the polymorphic admin
Diederik van der Boor
2012-07-13 10:59:35 +02:00
42d525a895
Added url in setup.py, so sdist actually works again.
Diederik van der Boor
2012-07-13 10:58:52 +02:00
0950b86ca9
Added requires files to MANIFEST.in and setup.py
Diederik van der Boor
2012-07-13 10:58:33 +02:00
b2e308d30c
Improve PolymorphicParentAdmin, simplify, fix templates
Diederik van der Boor
2012-07-13 10:32:12 +02:00
2e76811adb
Adding PolymorphicChildModelAdmin to __all__ as well
Diederik van der Boor
2012-07-05 23:27:34 +02:00
5d65bf4bbc
Added polymorphic admin interface
Diederik van der Boor
2012-07-05 22:12:01 +02:00
db4cc4dc3b
Merge pull request #5 from ojii/patch-1
Chris Glass
2012-01-09 07:48:57 -08:00
870091c13f
Explicit is better than implicit
Jonas Obrist
2012-01-09 16:47:59 +01:00
a5a517532f
Added Germán to AUTHORS.rst
Christopher Glass
2011-12-20 19:01:13 +00:00
f987818fe4
PEP 8 cleaning
German M. Bravo
2011-11-26 00:22:18 -06:00
c9922d8987
PEP 8 cleaning
German M. Bravo
2011-11-26 00:07:23 -06:00
bb06d6d12b
Some more PEP 8 cleaning
German M. Bravo
2011-11-25 23:37:55 -06:00
741abf4228
Cleanup AUTHORS.rst
Christopher Glass
2011-12-20 18:56:37 +00:00
11daac4fef
Merge pull request #3 from mbrochh/dont_use_attrs
Chris Glass
2011-12-20 10:53:00 -08:00
ce97087f78
Started cleaning up
Christopher Glass
2011-12-20 18:51:05 +00:00
60813621a1
Drew the line between legacy and new code.
Christopher Glass
2011-12-20 18:49:20 +00:00
dfc8eff1e1
Not using attrs when getting the first user defined manager.
Martin Brochhaus
2011-12-09 15:22:38 +08:00
227810c49f
Removed homepage URL from python packaging (this broke pip, as usual)
Chris Glass
2011-08-02 14:18:04 +02:00
c7cbfc0e23
Removed dead imports.
Chris Glass
2011-05-19 15:16:39 +02:00
10b8901088
Edited polymorphic/showfields.py via GitHub
Jonas Obrist
2011-05-19 06:08:39 -07:00
30f11a35d7
Edited polymorphic/query_translate.py via GitHub
Jonas Obrist
2011-05-19 06:07:25 -07:00
6f8e31222d
PEP-8, it's a thing!
Jonas Obrist
2011-05-19 06:05:49 -07:00
ba2cb60c9d
Edited polymorphic/polymorphic_model.py via GitHub
Jonas Obrist
2011-05-19 06:04:23 -07:00
fabae70ed4
protip: after a colon in python, HIT THE ENTER KEY!
Jonas Obrist
2011-05-19 06:02:53 -07:00
f42c58c0d4
it's python, not javascript!
Jonas Obrist
2011-05-19 06:01:07 -07:00
7b49fd133f
Added packaging stuff to gitignore, created MANIFEST include (to ship the license and docs etc...)
Chris Glass
2011-04-27 11:20:34 +02:00
000d480dfb
Fixed typo
Chris Glass
2011-04-27 11:11:31 +02:00
74a21efb17
Changed setup.py: Added maintainer field (me), and classifiers
Chris Glass
2011-04-27 11:10:06 +02:00
a0f1fe455a
Added stuff to gitignore
Chris Glass
2011-04-27 11:09:54 +02:00
2c47db8fcc
Fixed github issue 15 (query result incomplete with inheritance). Thanks to John Debs.
Bert Constantin
2011-01-24 16:37:38 +01:00
3cc7d483c1
minor additions in base.py
Bert Constantin
2010-11-30 22:47:52 +01:00
4a4cfd82a2
translate_polymorphic_Q_object: fixed test case, and made the function a member of PolymorphicObject. Minor test fixes: warnings fixed, test_tool.py renamed as it's no test
Bert Constantin
2010-11-12 06:33:50 +01:00
ca329ff9b4
docs
Bert Constantin
2010-11-11 17:11:01 +01:00
748d10d2d5
docs
Bert Constantin
2010-11-05 22:24:07 +01:00
f78b27dc1a
updated docs, tests, misc
Bert Constantin
2010-10-31 12:22:14 +01:00
52f32c1fc3
improved showfields.py for better and more precise output, updated tests
Bert Constantin
2010-10-31 12:27:21 +01:00
a4ac6cc91d
fix object retrieval problem occuring with some custom primary key fields + added UUIDField as test case
Bert Constantin
2010-10-30 15:54:13 +02:00
8c3df56cb6
non_polymorphic() queryset member function added
Bert Constantin
2010-10-23 12:20:23 +02:00
19adbdaf2c
extra(): Re-implemented. Now is polymorphic (nearly) without restrictions. Added test cases + docs.
Bert Constantin
2010-10-23 10:58:44 +02:00
6c8d28cbbc
extra(): throw error if unsupported argument is encountered, support 'params' argument, special case Django 1.1
Bert Constantin
2010-10-22 13:30:03 +02:00
486a579ac7
Make .extra() only disable polymorphic query if an arg that is currently not handled is actually used. I.e. if all args are supported, then do polymorphic query by default.
Abel Daniel
2010-10-12 11:48:02 +02:00
b2357592cb
make sure 'base_manager is not inherited (but managed by Django instead). (This seems more correct but it doen't seem to make any difference.) Also added related test cases.
Bert Constantin
2010-10-22 12:11:34 +02:00
6628145af7
removed __getattribute__ hack from PolymorphicModel. A somewhat cleaner solution is now used (through __init__) which also completely removes the performance impact of __getattribute__.
Bert Constantin
2010-10-18 12:06:50 +02:00
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.
Bert Constantin
2010-10-18 17:39:06 +02:00
f05b854a54
make PolymorphicQuerySet.get_real_instances() an official part of the API
Bert Constantin
2010-10-19 18:55:30 +02:00
b1905026bc
Documentation updated. Test_all_versions script added. Some minor misc changes. Added polybench.
Bert Constantin
2010-10-20 09:31:36 +02:00
c10ff1650b
added translate_polymorphic_Q_object
Bert Constantin
2010-10-17 04:22:15 +02:00
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.
Bert Constantin
2010-10-16 14:40:27 +02:00
50b54f5aca
removed requirement for primary key to be an IntegerField.
mathieusteele
2010-10-14 19:14:58 -07:00
116e2af08b
IMPORTANT: import path changed, it's now: "from polymorphic import PolymorphicModel, ..." - added python2.4 compatibility. Contributed by Charles Leifer. Thanks! - general reorganization of the code - there is no single polymorphic.py module anymore, so d-p now needs to be installed as a regular Django app - polymorphic.VERSION/get_version added - version numbering started: V0.5 beta
Bert Constantin
2010-02-19 17:12:21 +01:00
e6c1e7ec6e
fix "...has no attribute 'sub_and_superclass_dict'". Thanks to Mattias Brändström. this occurred if a subclass defined __init__ and accessed class members before calling the superclass __init__ (__getattribute__ had a problem, as "sub_and_superclass_dict" was set in __init__).
Bert Constantin
2010-02-18 17:44:33 +01:00
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.
Bert Constantin
2010-02-18 17:13:05 +01:00
2795f7acd5
some doc + minor code updates (__repr__ + Show... mixins)
Bert Constantin
2010-02-04 18:09:15 +01:00