Try to set default_price.max_digits=9

Or you can create your own class extending DecimalField setting your
defaults.


On Thu, 11 Apr 2019 at 08:46, Yongky Tria Putra <dayon...@gmail.com> wrote:

> Hello everyone,
>
> What is the best way to modified database field restrictions in third
> party app (pretix)? Currently, i want to change max_digits=7  to
> max_digits=9  in database below.
>
> default_price = models.DecimalField(
> decimal_places=2, max_digits=7,
> null=True, blank=True,
> verbose_name=_("Default price"),
> )
> Is it possible without modified the third party source code?
> Thanks
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c3646848-03f9-459a-99ad-7b71e7348799%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/c3646848-03f9-459a-99ad-7b71e7348799%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFmXjSCD_x2uRcab63iJ1HMWAB01Ef9zYZQA_KszTRFB-Or8yw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to