Commits

Anonymous committed 7173de8

0.91-bugfixes: Revert previous, since it doesn't seem to actually solve the bug

Comments (0)

Files changed (1)

django/core/meta/__init__.py

 # Handles setting many-to-many relationships.
 # Example: Poll.set_sites()
 def method_set_many_to_many(rel_field, self, id_list):
-    if len(id_list) == 1 and isinstance(id_list[0], basestring) and ',' in id_list[0]:
-        new_id_list = []
-        for bit in id_list[0].split(','):
-            try:
-                new_id_list.append(int(bit.strip()))
-            except ValueError:
-                continue
-        id_list = new_id_list
     current_ids = [getattr(obj, obj._meta.pk.attname) for obj in method_get_many_to_many(rel_field, self)]
     ids_to_add, ids_to_delete = dict([(i, 1) for i in id_list]), []
     for current_id in current_ids:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.