Am I over-normalizing?

2011-05-14 Thread bendavis78
I have a database of patients ("Patient" model), and a patient can have subordinate accounts which is a self-foreign-key (eg, for family members), We also store multiple addresses for each patient (home, work, billing). I'm pretty sure I need to have an Address model as a many-to-one, because a

Re: Martin Fowler's "Captcha for Django"

2009-03-18 Thread bendavis78
I've made some more changes/fixes to this, in case anyone's interested. Here's what's changed from the original: - updated for compatibility w/ django-1.1 - using sha1 instead of md5 to store captcha image (theoretically more secure) - added expire_time config variable - added imagetype

Re: Martin Winkler's "Captcha for Django"

2009-03-14 Thread bendavis78
EDIT: Oops! where did I get "Martin Fowler" from? It was "Martin Winkler"!! (sorry Martin W) On Mar 14, 11:21 am, bendavis78 <bendavi...@gmail.com> wrote: > Hi django-heads,  I found Martin Fowler's "Captcha for Django" > here:http://django

Martin Fowler's "Captcha for Django"

2009-03-14 Thread bendavis78
Hi django-heads, I found Martin Fowler's "Captcha for Django" here: http://django.agami.at/media/captcha/. This is by far the easiest to use captcha system for django that I've found on the 'net, but I found it was outdated (not working w/ 1.0 or 1.1). If anyone is interested, I've created

get_absolute_url() and related models

2009-02-23 Thread bendavis78
I have products within categories. The url for a product is /store/ category-slug/product-slug. My question is about the best way to get the url for this product while looping through a product listing page. My view simply defines a context variable called products, assigned to the results