locale support - decimal point character

2007-06-16 Thread schettino72
Hello, I would like to change the decimal point character from "." to ",". "django settings" have several localization options but I couldnt find for decimal point character. Is it supported? I am specially interested in the admin interface. I know i can use the python locale module

Valid Lookup types by Model Field type

2007-06-12 Thread schettino72
Hello, Can I dynamically determine what are the valid lookup types for a specified type of model field? i.e. If you try: >>> q1 = Entry.objects.filter(blog__startswith="What") where blog is a 'models.ForeignKey'. you will get an exception because "startswith" is not valid for ForeignKey fie

Re: How to render newforms dynamically created fields?

2007-05-06 Thread schettino72
Hello, I transferred the logic to the view instead of trying to handle it in the template. So i pass to the template a list of tuples containing the html string generated by newforms. This way i handle dynamic created fields and easily lay down the elements the way i want. Note that i put a fi