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>

Index: django-ajax-selects-1.3.4/ajax_select/fields.py
===================================================================
--- django-ajax-selects-1.3.4.orig/ajax_select/fields.py	2014-03-31 01:41:41.000000000 +1100
+++ django-ajax-selects-1.3.4/ajax_select/fields.py	2014-04-02 12:10:05.022234351 +1100
@@ -104,10 +104,7 @@
     def value_from_datadict(self, data, files, name):
 
         got = data.get(name, None)
-        if got:
-            return _to_number(got)
-        else:
-            return None
+        return got
 
     def id_for_label(self, id_):
         return '%s_text' % id_
@@ -224,7 +221,7 @@
 
     def value_from_datadict(self, data, files, name):
         # eg. 'members': ['|229|4688|190|']
-        return [_to_number(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_
