Code Monkey home page Code Monkey logo

django-reflinks's People

Contributors

beheh avatar jleclanche avatar joolean avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-reflinks's Issues

self.next ReferralHit attribute producing DataError: value too long for type character varying(200)

One of my customers uses Hubspot for their referrals, which adds a tremendous amount of cruft to their tracking links. For instance, this is the automated link created by a HubSpot email to my home page (sanitized example which was originally 304 characters long):

example.com/?utm_campaign=some+string+here&utm_source=another_short_string&utm_medium=email&utm_content=123456789&_hsenc=100_CHARACTER_RANDOM_STRING&_hsmi=1234567

The default URLField length is 200 characters, and that gets taken up very quickly if a link has a 100 character random string as part of it.

What I've done to temporarily fix this is increase the max_length parameter of the ReferralHit.next URLField to 500 characters. I thought that perhaps stripping the query parameters from the self.next parameter on the ReferralHit model would be another solution. Any thoughts? I'd be happy to provide a PR if one is desired!

Release 0.6.0 on Pypi

Hi! ๐Ÿ‘‹

I see that some work has been done to create version 0.6.0.
Are there any plans to release it on PyPI?

Thank you!

IntegrityError: null value in column "ip" violates not-null constraint

Thanks for building this!

In a Chrome incognito window, REMOTE_ADDR is a null value so this library throws the IntegrityError above.

I suggest allowing null=True, blank=True on this field to allow blank values. Happy to add a PR if that's helpful! Let me know if any suggestions or concerns?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.