On Fri, Feb 11, 2011 at 4:18 PM, Santiago Caracol <santiago.cara...@gmail.com> wrote: >> Since the pickled value is a string, it should work in fixtures. > > There is no point in storing the regex strings in a pickle field. I > already have the regex strings in ordinary django fields. What I want > to store is *compiled* regular expressions in order to be able to use > them without having to compile them first. >
It doesn't store the regex string, it stores the compiled regular expression as a python object, pickled, and then packed into an ascii string. When it pulls it out again, it unpacks it, un-pickles it and it has a compiled regular expression, not a string. Why don't you try it out and see, instead of just telling us it doesn't work. Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.