Description: Support non-numeric ids
 See http://code.google.com/p/django-ajax-selects/issues/detail?id=52
Author: Brian May <bam@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- django-ajax-selects-1.2.4.orig/ajax_select/fields.py
+++ django-ajax-selects-1.2.4/ajax_select/fields.py
@@ -73,10 +73,7 @@ class AutoCompleteSelectWidget(forms.wid
     def value_from_datadict(self, data, files, name):
 
         got = data.get(name, None)
-        if got:
-            return long(got)
-        else:
-            return None
+        return got
 
     def id_for_label(self, id_):
         return '%s_text' % id_
@@ -187,7 +184,7 @@ class AutoCompleteSelectMultipleWidget(f
 
     def value_from_datadict(self, data, files, name):
         # eg. u'members': [u'|229|4688|190|']
-        return [long(val) for val in data.get(name,'').split('|') if val]
+        return [val for val in data.get(name,'').split('|') if val]
 
     def id_for_label(self, id_):
         return '%s_text' % id_
