Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion #12339: ContentType update could cascade deletes to generic foreign keys, causing data loss
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Django  
View profile  
 More options Jan 12 2010, 12:05 pm
From: "Django" <nore...@djangoproject.com>
Date: Tue, 12 Jan 2010 17:05:00 -0000
Subject: Re: [Django] #12339: ContentType update could cascade deletes to generic foreign keys, causing data loss
#12339: ContentType update could cascade deletes to generic foreign keys, causing
data loss
-----------------------------------+--------------------------------------- -
          Reporter:  kcarnold      |         Owner:  nobody                      
            Status:  reopened      |     Milestone:                              
         Component:  Contrib apps  |       Version:  1.1                        
        Resolution:                |      Keywords:  contenttype, delete, cascade
             Stage:  Unreviewed    |     Has_patch:  0                          
        Needs_docs:  0             |   Needs_tests:  0                          
Needs_better_patch:  0             |  
-----------------------------------+--------------------------------------- -
Comment (by kcarnold):

 Pick your patch.

 The first one just removes the dangerous {{{delete}}}, always leaving
 stale content types alone.

 The second one keeps the {{{delete}}}, but guards it by a flag that
 defaults to False. It documents how to call the command with that flag
 being true. (It also incidentally enables {{{update_all_contenttypes}}} to
 pass along the new {{{db}}} parameter. I don't know if that's useful,
 though.) That documentation might arguably belong in the main docs, but I
 don't think it's worth integrating, given that it merely patches over the
 real problem (lack of migration support).

 I care that this bug is fixed, but I'm indifferent to which approach you
 prefer to take.

--
Ticket URL: <http://code.djangoproject.com/ticket/12339#comment:6>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.