Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

django.db.utils.DataError: value too long for type character varying(45) #57

Closed
JMIdeaMaker opened this issue Jan 7, 2020 · 2 comments
Labels

Comments

@JMIdeaMaker
Copy link

I get the error in the title when I visit any referral link (in production -- locally everything works fine). What could be wrong?

Example: https://www.datafix.io/referrals/fw7NBRL0x4j6q4mOO5QLUv6rw5pLzjv7oaZTxhjO/

@JMIdeaMaker JMIdeaMaker added the bug label Jan 7, 2020
@KatherineMichel
Copy link
Member

@mikejohnsonjr I wonder if it has to do with the old ReferralResponse ip_address limit. It used to be 45, but was recently updated to 265. Looks like the migrations file still shows 45.

('ip_address', models.CharField(max_length=45)),

https://github.com/pinax/pinax-referrals/blob/master/pinax/referrals/models.py#L150

The fix was discussed in this issue: #46

@ckrybus
Copy link
Contributor

ckrybus commented Dec 17, 2022

@PetrDlouhy please close the issue, the bug was fixed a while ago

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants