graphql-python / graphql-python/graphene-django

Make graphene.Decimal consistent to models.DecimalField

Open
#920 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.4k
Forks
760
PR merge metrics
No merged PRs in 30d

Description

Django's [DecimalField](https://docs.djangoproject.com/en/3.0/ref/models/fields/#decimalfield) `class DecimalField(max_digits=None, decimal_places=None, **options)` with `max_digits` and `decimal_places` is super useful. `graphene.Decimal` seems not to support definition of places before and after the point yet. What about making `graphene.Decimal` more consistent with `DecimalField`?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.