Re: Django 1.8 - django 1.7 differences to read DecimalField

2017-04-06 Thread Maximiliano Robaina
Hi Tim,

Thanks for the tip.

I finally found the problem [1], which was obviously between the chair and 
the keyboard.

Regards.
Maxi

[1] https://github.com/maxirobaina/django-firebird/issues/69


El miércoles, 5 de abril de 2017, 20:27:11 (UTC-3), Tim Graham escribió:
>
> I'd suggest to use git bisect to find the Django commit where the behavior 
> changed:
>
> https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression
>
 

>
>
> On Wednesday, April 5, 2017 at 5:57:03 PM UTC-4, Maximiliano Robaina wrote:
>>
>> Hi,
>>
>>
>> I'm the maintener of django-firebird database backend.
>>
>> I've an strange behavior (a different result) when reading a value from a 
>> DecimalField between Django 1.7 and Django 1.8 and I'm trying to figured 
>> out where is my mistake.
>>
>> I've a django project which I update from 1.7 to 1.8.
>> In this project I've a model with a DecimalField.  (by example, price 
>> = DecimalField(max_digits=18, decimal_places=2)
>>
>> Then, in django 1.7
>>
>> >> obj = ModelWithDecimalField.objects.first()
>> >> obj.price
>> >>  Decimal("1990.00")
>>
>> In django 1.8
>>
>> >> obj = ModelWithDecimalField.objects.first()
>> >> obj.price
>> >>  Decimal("1990")
>>
>>
>> So, I don't know where look to found this change. What change between 1.7 
>> and 1.8
>> Maybe I forget to implement something in django-firebird 1.8
>>
>>
>> Thanks in advance
>> Maxi
>>
>>
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/8dcbecbc-4edb-4eb8-b019-d659df7c7921%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django 1.8 - django 1.7 differences to read DecimalField

2017-04-05 Thread Tim Graham
I'd suggest to use git bisect to find the Django commit where the behavior 
changed:
https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression

On Wednesday, April 5, 2017 at 5:57:03 PM UTC-4, Maximiliano Robaina wrote:
>
> Hi,
>
>
> I'm the maintener of django-firebird database backend.
>
> I've an strange behavior (a different result) when reading a value from a 
> DecimalField between Django 1.7 and Django 1.8 and I'm trying to figured 
> out where is my mistake.
>
> I've a django project which I update from 1.7 to 1.8.
> In this project I've a model with a DecimalField.  (by example, price 
> = DecimalField(max_digits=18, decimal_places=2)
>
> Then, in django 1.7
>
> >> obj = ModelWithDecimalField.objects.first()
> >> obj.price
> >>  Decimal("1990.00")
>
> In django 1.8
>
> >> obj = ModelWithDecimalField.objects.first()
> >> obj.price
> >>  Decimal("1990")
>
>
> So, I don't know where look to found this change. What change between 1.7 
> and 1.8
> Maybe I forget to implement something in django-firebird 1.8
>
>
> Thanks in advance
> Maxi
>
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/538ec818-854f-475b-be7c-5078f240073d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django 1.8 - django 1.7 differences to read DecimalField

2017-04-05 Thread Maximiliano Robaina
Hi,


I'm the maintener of django-firebird database backend.

I've an strange behavior (a different result) when reading a value from a 
DecimalField between Django 1.7 and Django 1.8 and I'm trying to figured 
out where is my mistake.

I've a django project which I update from 1.7 to 1.8.
In this project I've a model with a DecimalField.  (by example, price 
= DecimalField(max_digits=18, decimal_places=2)

Then, in django 1.7

>> obj = ModelWithDecimalField.objects.first()
>> obj.price
>>  Decimal("1990.00")

In django 1.8

>> obj = ModelWithDecimalField.objects.first()
>> obj.price
>>  Decimal("1990")


So, I don't know where look to found this change. What change between 1.7 
and 1.8
Maybe I forget to implement something in django-firebird 1.8


Thanks in advance
Maxi






-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/33cca19c-edc1-4ff1-a8d8-10f0db5a87c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.