My pycharm shows DecimalField as type Any.
On Sat, 24 Sept 2022 at 07:09, Justin Black <justin.a.black@gmail.com> wrote:
Hello there,If I have a model:class Money(models.Model):price = models.DecimalField()m = Money(...)pycharm knows that m.price is of type Decimal but when I read through the django code base, I don't see DecimalField or Field subclassing decimal.DecimalAnd I don't see any registration code that registers DecimalField as type DecimalHow does django do this?--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2b1d5103-7aa4-4882-b1a8-f88ec43293d2n%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFKhtoTkTffxmHNj6SayrCGs6LwD0Ct%2BLpFZszKEvU%2Bii6oqbQ%40mail.gmail.com.
No comments:
Post a Comment