On 8/15/07, Rob Hudson <[EMAIL PROTECTED]> wrote:
>
> On 8/15/07, Collin Grady <[EMAIL PROTECTED]> wrote:
> > Wouldn't reset do that?
> >
> > ./manage.py reset auth contenttypes
>
> I haven't tried that but that looks like it would clear those tables
> completely vs. purging only the unused tables.
>
> Would following that with a syncdb then restore the content types for
> the installed apps?  I'll have to test that later.
>

Why not, rather than adding another option in django.core.management,
have the contenttypes app do this?  The existing post_syncdb hook
could be extended to clear unused content types as well as create new
ones.

You would have to remember to run syncdb after a reset though, but
this would be better than reseting all content types or adding another
option IMHO.

Cheers,
deryck

-- 
Deryck Hodge
Lead Developer, Product Development
Washington Post.Newsweek Interactive

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to