Changes between Version 15 and Version 16 of RemovingTheMagic
- Timestamp:
- Dec 14, 2005, 4:23:19 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RemovingTheMagic
v15 v16 224 224 {{{ 225 225 #!python 226 from path.to.myapp import Person226 from path.to.myapp.models import Person 227 227 try: 228 228 Person.objects.get_object(pk=1) … … 231 231 }}} 232 232 233 == Other "module"-level members: Automatic manipulators and !ObjectDoesNotExist exception==233 == Automatic manipulators == 234 234 235 235 '''Status: Not yet done''' 236 236 237 {{{ 238 #!python 239 Person.get_add_manipulator() 240 Person.get_change_manipulator() 241 Person.DoesNotExist 237 Old: 238 {{{ 239 #!python 240 from django.models.myapp import people 241 m1 = people.AddManipulator() 242 m2 = people.ChangeManipulator(3) 243 }}} 244 245 {{{ 246 #!python 247 from path.to.myapp.models import Person 248 m1 = Person.get_add_manipulator()() 249 m2 = Person.get_change_manipulator()(3) 242 250 }}} 243 251