Changes between Version 153 and Version 154 of RemovingTheMagic


Ignore:
Timestamp:
Jun 6, 2006, 5:54:14 AM (18 years ago)
Author:
garthk
Comment:

Added comment about content types

Legend:

Unmodified
Added
Removed
Modified
  • RemovingTheMagic

    v153 v154  
    274274UPDATE django_content_type SET name='user' WHERE model='users';
    275275}}}
     276
     277=== Entries in your Content Types table will now be wrong ===
     278
     279If you've been using the comments system, your comments will be related back to the objects via the content types table. These won't work after your upgrade because of the pluralization discrepancy between the new and the old: you'll get failures in {{{ContentType.get_object_for_this_type}}} complaining that {{{None}}} doesn't have a {{{_default_manager}}} attribute, and when you fix the arguments to {{{comment_form}}} and {{{get_comment_list}}} arguments you'll get more breakage because the {{{django_content_type}}} table is now out of whack. If you can't be bothered writing your own SQL to fix this, try [http://django.pastebin.com/762068 fix_content_types.py]; it seems to work for me. - [mailto:garth@deadlybloodyserious.com Garth].
    276280
    277281=== Database table-naming scheme has been changed ===
Back to Top