Re: Add Support for Hex numbers is Admin

2007-09-19 Thread Kevin
This is great thanks! You were one step ahead of me on the display. I'm still reading up on customizing the admin interface, but hopefully something in there will help me adding any javascript if it is needed. Thanks! On Sep 19, 3:25 pm, jake elliott <[EMAIL PROTECTED]> wrote: > hi kevin, > > yo

Re: Add Support for Hex numbers is Admin

2007-09-19 Thread jake elliott
hi kevin, you could convert to int in the model's save() method class MyModel(models.Model): def save(self): self.hexval = int(str(self.hexval), 16) super(MyModel, self).save() or whatever hex->decimal method you need for how you have the hex val stored. but then how to get it

Add Support for Hex numbers is Admin

2007-09-19 Thread Kevin
In the admin interface if someone enters a number in hex, then it fails the validation test. I've managed to make it pass the validation test, but now the number gets passed in hex to the back-end database (which does not support hex). Any ideas on how I might be able to convert the number to an i