Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utils.typecast_decimal removed? #102

Closed
e-belair opened this issue Nov 3, 2018 · 2 comments
Closed

utils.typecast_decimal removed? #102

e-belair opened this issue Nov 3, 2018 · 2 comments
Milestone

Comments

@e-belair
Copy link

e-belair commented Nov 3, 2018

Hi,
I'm using the master branch of django-firebird
Django 2.0.9
In my model I have this field:
x_etab = models.DecimalField(max_digits=18, decimal_places=10, blank=True, null=True)
Then I get thid error when I query models:

  File "/home/manu/env01/fbtest/venv/lib/python3.6/site-packages/firebird/operations.py", line 249, in convert_decimalfield_value
    value = utils.typecast_decimal(val)
AttributeError: module 'django.db.backends.utils' has no attribute 'typecast_decimal'

So I confirm that typecast_decimal is missing in django.db.backends.utils :
django/django@f3e350d#diff-1132e403debb86cff5e5dd3366985796

@e-belair
Copy link
Author

e-belair commented Nov 3, 2018

I forked the project then I changed the code like this:
https://github.com/manuscle/django-firebird/blob/2bcdc76652cd98369dfb8ffe1034db429f8eb3e2/firebird/operations.py#L248

@maxirobaina
Copy link
Owner

maxirobaina commented Nov 3, 2018 via email

@maxirobaina maxirobaina modified the milestone: 2.2.0 Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants