Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated set() method and adds tests #77

Closed
wants to merge 2 commits into from
Closed

Conversation

lsemel
Copy link

@lsemel lsemel commented Jul 28, 2011

I was using taggit in a form and noticed whenever the form was saved, Taggit would delete and recreate all the entries in the taggeditem table, issuing a load of database queries. set() in TaggableManager was being called, which, clears all the tags and then re-adds them.

I updated this so it only issues queries for tags that are added and removed.

@issackelly
Copy link

Confirmed, tests pass;

@apollo13
Copy link
Contributor

.add uses bulk_create nowadays so this should no longer be an issue.

@apollo13 apollo13 closed this Mar 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants