Hi there...

I'm working on a site that has several imperial measurements (feet and
inches) and I'd like to implement a field in my model that uses a
regular expression like:
 ^(\d{1,5})\'((\s?)(-?)(\s?)([0-9]|(1[0-1]))\")?$
to parse off the feet and inches and save them in a sortable manner
(I'm guessing the best way would be to convert them and save them as a
decimal number, but the list and admin display needs to in x'-y"
format. Anyone have any ideas as to how I might accomplish that? (or
where I should look for more information)?

Thank you,
bkev
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to