Almost forget. It thanks to Peterino comments on
this https://stackoverflow.com/a/2357942/2579404
On Friday, April 12, 2019 at 6:16:04 PM UTC+7, Yongky Tria Putra wrote:
>
> I solve it with this two lines code in my models:
>
> from thirdparty.models import
> ParentModelClassParentModelClass._meta.get_field('default_price').max_digits
> = 9
>
> then makemigrations && migrate
>
> voila it work, but i don't know any downside using this tricks.
>
> Hope it will help others with similar situation as well.
>
> On Thursday, April 11, 2019 at 6:46:32 PM UTC+7, Yongky Tria Putra 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 [email protected].
To post to this group, send email to [email protected].
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/9568dbc5-e859-41cb-b74b-fa7ecc2b0424%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.