Changes between Version 27 and Version 28 of RemovingTheMagic


Ignore:
Timestamp:
Jan 6, 2006, 4:14:24 PM (18 years ago)
Author:
Adrian Holovaty
Comment:

Added "get_object_or_404 and get_list_or_404 now take model classes, not modules"

Legend:

Unmodified
Added
Removed
Modified
  • RemovingTheMagic

    v27 v28  
    267267The {{{class META}}} within models should now be {{{class Meta}}}. The latter is nicer on the eyes.
    268268
     269== get_object_or_404 and get_list_or_404 now take model classes, not modules ==
     270
     271'''Status: Done'''
     272
     273Old:
     274{{{
     275#!python
     276get_object_or_404(polls, pk=1)
     277}}}
     278
     279New:
     280{{{
     281#!python
     282get_object_or_404(Poll, pk=1)
     283}}}
     284
    269285== Move "auth" and "core" models to django.contrib ==
    270286
Back to Top