Switch branches/tags
Commits on Jan 24, 2011
  1. minor additions in

    committed Nov 30, 2010
Commits on Nov 12, 2010
  1. translate_polymorphic_Q_object: fixed test case, and made the functio…

    …n a member of PolymorphicObject.
    Minor test fixes: warnings fixed, renamed as it's no test
    committed Nov 12, 2010
Commits on Nov 11, 2010
  1. docs

    committed Nov 11, 2010
Commits on Nov 5, 2010
  1. docs

    committed Nov 5, 2010
Commits on Nov 2, 2010
  1. updated docs, tests, misc

    committed Oct 31, 2010
  2. fix object retrieval problem occuring with some custom primary key fi…

    + added UUIDField as test case
    committed Oct 30, 2010
Commits on Oct 23, 2010
  1. extra(): Re-implemented. Now is polymorphic (nearly) without restrict…

    Added test cases + docs.
    committed Oct 23, 2010
Commits on Oct 22, 2010
  1. extra(): throw error if unsupported argument is encountered, support …

    …'params' argument, special case Django 1.1
    committed Oct 22, 2010
  2. 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 committed with Oct 12, 2010
  3. make sure 'base_manager is not inherited (but managed by Django inste…

    (This seems more correct but it doen't seem to make any difference.)
    Also added related test cases.
    committed Oct 22, 2010
Commits on Oct 20, 2010
  1. removed __getattribute__ hack from PolymorphicModel.

    A somewhat cleaner solution is now used (through __init__) which
    also completely removes the performance impact of __getattribute__.
    committed Oct 18, 2010
  2. 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.
    committed Oct 18, 2010
  3. Documentation updated.

    Test_all_versions script added.
    Some minor misc changes.
    Added polybench.
    committed Oct 20, 2010
Commits on Oct 19, 2010
  1. - renamed ShowField* to ShowFieldType, ShowFieldContent, ShowFieldTyp…

    …eAndContent, 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.
    committed Oct 16, 2010
Commits on Oct 15, 2010
Commits on Feb 22, 2010
  1. IMPORTANT: import path changed, it's now: "from polymorphic import Po…

    …lymorphicModel, ..."
    - added python2.4 compatibility. Contributed by Charles Leifer. Thanks!
    - general reorganization of the code - there is no single 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
    committed Feb 19, 2010
Commits on Feb 18, 2010
  1. fix "...has no attribute 'sub_and_superclass_dict'". Thanks to Mattia…

    …s 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__).
    committed Feb 18, 2010
  2. fix unnecessary field-name/model-name conflicts (i.e. field_name == m…

    …odel_name.lower() )
    => __init__ + __getattribute__ now handle only the Django inheritance
    references that are needed ('modela_ptr', 'modelc' etc.), avoiding
    unnecessary conflicts with field names.
    committed Feb 18, 2010
Commits on Feb 4, 2010
  1. queryset values(), values_list(), distinct() documented; defer(), onl…

    …y() allowed (but not yet supported)
    committed Feb 4, 2010
  2. fix remaining potential accessor name clashes (but this only works wi…

    …th Django 1.2+, for 1.1 no changes). Thanks to Andrew Ingram.
    committed Feb 2, 2010
  3. doc- and minor code updates

    committed Jan 30, 2010
Commits on Jan 30, 2010
  1. Fixed ContentType related field accessor clash (an error emitted by m…

    …odel validation),
    by adding related_name to the ContentType ForeignKey. Thanks to  Andrew Ingram.
    This happened if a polymorphc model used a ContentType ForeignKey.
    Plus minor documentation updates.
    committed Jan 29, 2010