We have a model with a DateTimeField, and two FloatField's. These three fields are unique_together in the database.
Why when using get_or_create(datetimefield=someDatetimeObject, floatfield1=float(-34.2412), floatfield2=float(1.2432)) does it not return a record in the database that has those values, and then fails with a duplicate key error on the unique key of those fields?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users googlegroups.com To unsubscribe from this group, send email to django-users-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---
|