Changes between Version 76 and Version 77 of RemovingTheMagic


Ignore:
Timestamp:
02/27/2006 11:48:34 AM (10 years ago)
Author:
jacob
Comment:

Added info about removal of packages module

Legend:

Unmodified
Added
Removed
Modified
  • RemovingTheMagic

    v76 v77  
    6060ALTER TABLE django_flatpages_sites RENAME TO django_flatpage_sites;
    6161ALTER TABLE django_redirects RENAME TO django_redirect;
    62 ALTER TABLE packages RENAME TO django_package;
    6362ALTER TABLE sites RENAME TO django_site;
     63DROP TABLE packages;
    6464}}}
    6565
     
    237237Also, the {{{Session}}} model has moved from django/models/core.py to django/contrib/sessions/models.py. If you're accessing the {{{Session}}} model for some reason, note that location change.
    238238
     239=== The "packages" module is no more ==
     240
     241Packages no longer exist (they were redundant).  If you've done lookups against content-types or permissions you'll need to modify your code slightly:
     242
     243    || Old                                                || New                                              ||
     244    || contenttypes.get_list(package__label__exact='foo') || ContentType.objects.filter(package__exact='foo') ||
     245    || permissions.get_list(package__label__exact='foo')  || Permission.objects.filter(package__exact='foo')  ||
     246   
    239247=== Changes to model syntax ===
    240248
Back to Top