Hi Selwin and Anssi,
Anssi, thanks for improving the patch and getting it ready for commit!
Selwin, you are right that .filter() and .first() are very similar.
Rationale for .first() is to get rid of the pattern
try:
instance = ModelX.objects.get
except ObjectDoesNotExist:
instance =
Hi Michael, sounds very reasonable to me. Could you please file a bug
ticket for that at https://code.djangoproject.com/newticket ?
On Tuesday, 22 January 2013 21:30:09 UTC+1, Michael Anckaert wrote:
>
> Hello everyone
>
> I came across an issue where my CBV and an automatic ModelForm gave me
>
Hello everyone
I came across an issue where my CBV and an automatic ModelForm gave me some
headaches with localization.
The project is localized so a float is 3,2 instead of 3.2 (comma instead of
dot) but the CBV UpdateView didn't handle the localization of the float.
After tracking through the s