Closed Rizziepit closed 12 years ago
get_or_create uses exact lookups to check whether an object exists. This is a problem for fields that don't support exact lookups, like the geo fields in GeoDjango
The code is a bit involved for me without more context, but I see nothing wrong with it. +1
get_or_create uses exact lookups to check whether an object exists. This is a problem for fields that don't support exact lookups, like the geo fields in GeoDjango