﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
965	sql sequence reset misses the m2m tables	exoweb adrian	Adrian Holovaty	"The sql sequence reset code in django.core.management misses the tables that are generated for the many to many fields.

For example, my Word model is many to many to my Meaning model.  Now I have tables ""words"", ""meanings"" and ""words_meanings"".  I also have the sequences ""words_id_seq"", ""meanings_id_seq"" and ""words_meanings_id_seq"".  I invalidate my id sequences somehow, maybe by manually loading some data into the db, so I have to run the commands given by the get_sql_sequence_reset function.  Now the ""words_id_seq"" and ""meanings_id_seq"" get fixed, but ""words_meanings_id_seq"" is still wrong.

This is more a fault of postgresql than django, but it would be nice if the sequence_reset code also worked for those of us with m2m fields in our models.
"	defect	closed	Core (Management commands)		normal	fixed			Unreviewed	0	0	0	0	0	0
