#10767: SQL flush statements are generated for through many to many tables set managed = False ------------------------------------------+--------------------------------- Reporter: trevor | Owner: nobody Status: new | Milestone: Component: Database layer (models, ORM) | Version: 1.0 Keywords: | Stage: Unreviewed Has_patch: 1 | ------------------------------------------+--------------------------------- SQL flush statements (those output by `./manage.py sqlflush`) correctly do not include statements truncating django models marked as `managed = False`, except for those which are used as the through model for many to many relations (`ManyToManyField(through=...)`).
I have attached a patch which fixes the issue by excluding through models marked `managed = False` when creating the list of tables and sequences to flush. -- Ticket URL: <http://code.djangoproject.com/ticket/10767> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" 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-updates?hl=en -~----------~----~----~----~------~----~------~--~---
