Commits

Carl Meyer  committed 37887e8

Tweaked docs for get_subclass, added changelog entry.

  • Participants
  • Parent commits 7f88455

Comments (0)

Files changed (2)

 tip (unreleased)
 ----------------
 
+- Added ``InheritanceManager.get_subclass()``. Thanks smacker.
+
 1.0.0 (2011.06.16)
 ------------------
 
     nearby_places = Place.objects.select_subclasses("restaurant")
     # restaurants will be Restaurant instances, bars will still be Place instances
 
-Also it provides syntax sugar for `get()` method::
+``InheritanceManager`` also provides a subclass-fetching alternative to the
+``get()`` method::
     
     place = Place.objects.get_subclass(id=some_id)
     # "place" will automatically be an instance of Place, Restaurant, or Bar
 
-If you don't explicitly call ``select_subclasses()``, an ``InheritanceManager``
-behaves identically to a normal ``Manager``; so it's safe to use as your
-default manager for the model.
+If you don't explicitly call ``select_subclasses()`` or ``get_subclass()``,
+an ``InheritanceManager`` behaves identically to a normal ``Manager``; so
+it's safe to use as your default manager for the model.
 
 .. note::
     ``InheritanceManager`` currently only supports a single level of model