Changes between Version 15 and Version 16 of RemovingTheMagic


Ignore:
Timestamp:
12/14/2005 04:23:19 PM (10 years ago)
Author:
adrian
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RemovingTheMagic

    v15 v16  
    224224{{{
    225225#!python
    226 from path.to.myapp import Person
     226from path.to.myapp.models import Person
    227227try:
    228228    Person.objects.get_object(pk=1)
     
    231231}}}
    232232
    233 == Other "module"-level members: Automatic manipulators and !ObjectDoesNotExist exception ==
     233== Automatic manipulators ==
    234234
    235235'''Status: Not yet done'''
    236236
    237 {{{
    238 #!python
    239 Person.get_add_manipulator()
    240 Person.get_change_manipulator()
    241 Person.DoesNotExist
     237Old:
     238{{{
     239#!python
     240from django.models.myapp import people
     241m1 = people.AddManipulator()
     242m2 = people.ChangeManipulator(3)
     243}}}
     244
     245{{{
     246#!python
     247from path.to.myapp.models import Person
     248m1 = Person.get_add_manipulator()()
     249m2 = Person.get_change_manipulator()(3)
    242250}}}
    243251
Back to Top