Re: How to present a calculated field in a admin edit form.

2012-07-16 Thread tWoolie
What would it mean to django to have a formfield for a method anyway? You need to override the edit page template for that model. or You need to supply a custom form for the edit page that takes care of inserting and removing the calculated data on __init__ and clean -- You received this messa

Re: 'NoneType' object has no attribute 'datetime' bug?

2012-07-16 Thread tWoolie
somehow, your global datetime variable is being clobbered with the value None. Find where that happens, and your bug will disappear. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google

Re: Query Distance from User

2012-07-16 Thread tWoolie
Just use Lat/Lon. You can fidget over which projection to use later as long as your data is good. (WGS84 is the best btw) For geolocation, you can use the HTML5 Geolocation API that will use the person's browser to give you a location usually accurate to 200m (better if they're on a phone with

Re: masking only a small part of a template

2012-07-08 Thread tWoolie
Sorry, I should have been clearer. What I have is an external project that is included "as-is". It has it's templates and it's views are hardcoded against the template names. I want to know if it's possible to create a template called, say, "app/dashboard.html" in the global template dir that th

masking only a small part of a template

2012-07-08 Thread tWoolie
I have a template in a 3rd party app that i'm trying to override, but only a single block. Is there any way that I can do this without copy-pasting the entire template into the global templates dir just to change a few lines? Is there any way to create a template that "extends" itself from furth