diff --git a/CHANGES.html b/CHANGES.html index 36f2d4d..ad3a85e 100644 --- a/CHANGES.html +++ b/CHANGES.html @@ -11,6 +11,10 @@ h1, h2, h3, h4 { color: #47c; } +h1 { padding-top: 15px; } +h2 { padding-top: 10px; } +h3 { padding-top: 7px; } + a:hover { border-bottom: 1px solid #0066cc; } a {color: #0066cc; text-decoration: none;} @@ -216,12 +220,55 @@ ul.auto-toc {
.
-The release contains a considerable amount of changes in some of the more +critical parts of the software. It's intended for testing and development +environments and not for production environments. For these, it's best to +wait a few weeks for the proper V1.0 release, to allow some time for any +potential problems to show up (if they exist).
+.get_real_instances(): implementation modified to allow the following +more simple and intuitive use:
++>>> qs = ModelA.objects.all().non_polymorphic() +>>> qs.get_real_instances() ++
which is equivalent to:
++>>> ModelA.objects.all() ++
This release is mostly a cleanup and maintenance release that also improves a number of minor things and fixes one (non-critical) bug.
Some pending API changes and corrections have been folded into this release @@ -233,7 +280,7 @@ API fixes into V1.0.
critical parts of the software. It's intended for testing and development environments and not for production environments. For these, it's best to wait a few weeks for the proper V1.0 release, to allow some time for any -potential problems to turn up (if they exist). +potential problems to show up (if they exist).If you encounter any such problems, please post them in the discussion group or open an issue on GitHub or BitBucket (or send me an email).
There also have been a number of minor API changes. @@ -245,15 +292,14 @@ Please see the README for more information.
official Django 1.3 alpha compatibility
PolymorphicModel.__getattribute__ hack removed. -The python __getattribute__ hack generally causes a considerable -overhead and to have this in the performance-sensitive PolymorphicModel -class was somewhat problematic. It's gone for good now.
+This improves performance considerably as python's __getattribute__ +generally causes a pretty large processing overhead. It's gone now.polymorphic_dumpdata management command functionality removed: -The regular Django dumpdata command now automatically works correctly -for polymorphic models with all Django versions.
+the polymorphic_dumpdata management command is not needed anymore +and has been disabled, as the regular Django dumpdata command now automatically +works correctly with polymorphic models (for all supported versions of Django).
.get_real_instances() has been elevated to an official part of the API:
+.get_real_instances() has been elevated to an official part of the API:
real_objects = ModelA.objects.get_real_instances(base_objects_list_or_queryset)@@ -278,14 +324,11 @@ Thanks to Mathieu Steele and Malthe Borch.
The polymorphic_dumpdata management command is not needed anymore -and has been removed, as the regular Django dumpdata command now automatically +
polymorphic_dumpdata
+The management command polymorphic_dumpdata is not needed anymore +and has been disabled, as the regular Django dumpdata command now automatically works correctly with polymorphic models (for all supported versions of Django).
-Output of Queryset or Object Printing
In order to improve compatibility with vanilla Django, printing quersets does not use django_polymorphic's pretty printing by default anymore. To get the old behaviour when printing querysets, you need to replace your model definition:
@@ -303,14 +346,11 @@ To get the old behaviour when printing querysets, you need to replace your modelShowFieldType, ShowFieldContent and ShowFieldTypeAndContent
(the old ones still exist for compatibility)
-Running the Test suite with Django 1.3
Django 1.3 requires python manage.py test polymorphic instead of just python manage.py test.