Changes between Version 27 and Version 28 of RemovingTheMagic


Ignore:
Timestamp:
01/06/2006 04:14:24 PM (10 years ago)
Author:
adrian
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