Git Product home page Git Product logo

Comments (6)

caioariede avatar caioariede commented on September 14, 2024

The max_length thing seems to be a bug. I'll try to confirm later.

Second, the based_fields will look for the rendered HTML input field for the fields you set. Usually, for a ForeignKey it's a <select>, so it will use the value of the selected <option>.

Lastly, yes. You can set based_fields=['city', 'region']. You can even pass the suffix parameter if you want to restrict your search to a specific country, for example: suffix='Country name'.

from django-location-field.

caioariede avatar caioariede commented on September 14, 2024

And just to mention, the version 2.0 will be out within the next days. I'd consider using it for now.

from django-location-field.

Guest007 avatar Guest007 commented on September 14, 2024

Thank you!
Some addition to error's description:
DB - Postgresql
if I try to add max_length to the field - I've got error:

TypeError: __init__() got multiple values for argument 'max_length'

from django-location-field.

caioariede avatar caioariede commented on September 14, 2024

I can't reproduce this issue. Which version are you using?

from django-location-field.

Guest007 avatar Guest007 commented on September 14, 2024

python 3.5.0
Django==1.9.1
django-location-field==1.6.1

from django-location-field.

caioariede avatar caioariede commented on September 14, 2024

Closing this for now as we released a new version. Please reopen if it persists.

from django-location-field.

Related Issues (20)

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.