Increase api field length
Closed this issue · 5 comments
There are few apis which consists of long query params like
{{protocol}}://{{base_url}}/api/v1/configurations/area-templates/?search=searchstring&service=6&sub_location=9&sub_location=8&sub_location=7&fields=name,id&service_location=2&service_location=3§ion=1§ion=2§ion=3§ion=4§ion=5§ion=6§ion=7§ion=8§ion=9§ion=10§ion=11§ion=12§ion=13§ion=14§ion=15§ion=16§ion=17§ion=18§ion=19§ion=20§ion=21§ion=22&no_page
but according to the model field, this can only save 512 chars and raise
*** django.db.utils.DataError: value too long for type character varying(512)
class APILogsModel(BaseModel):
api = models.CharField(max_length=512, help_text='API URL')
@vishalanandl177 Please look into this. thanks
Hi @jatindergit.
This will be fixed in the upcoming new version.
Thanks @vishalanandl177
btw, when you are going to release it?
In 1 to 2 days, depending on the testing process.
Please install version 1.0.9