Giter Club home page Giter Club logo

django-find's People

Contributors

knipknap avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

django-find's Issues

SQLSerializer crashes with multiple aliases

When having multiple aliases defined for a specific field (in your searchable attribute in a Searchable class) then django-find inserts the same alias for the columns in the generated query. This is results in an invalid SQL statement.



The solutions would be either to define the aliases used in the generated statement or add a counter for the generated aliases which have multiple appearances. The last solution should be implemented as a failsave anyway.

There should be a way to get a result with unique columns

The fields in the result are derived from the searchable attribute in the Searchable class. The problem is that there is no distinction between column names and aliases for the same column. This results in having always all aliases when calling get_fullnames here:

def get_fullnames(cls):
.



There should be provided an option to filter out any aliases for the same column.

Can you explain why about mysqlclient installer?

Collecting mysqlclient Using cached mysqlclient-2.0.1.tar.gz (87 kB) ERROR: Command errored out with exit status 1: command: /Users/handy/Files/Projects/web/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/w9/lzs36g6s6jn_35qlm8ksm1lh0000gn/T/pip-install-reyy38ge/mysqlclient/setup.py'"'"'; __file__='"'"'/private/var/folders/w9/lzs36g6s6jn_35qlm8ksm1lh0000gn/T/pip-install-reyy38ge/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/w9/lzs36g6s6jn_35qlm8ksm1lh0000gn/T/pip-pip-egg-info-7sd6i3u7 cwd: /private/var/folders/w9/lzs36g6s6jn_35qlm8ksm1lh0000gn/T/pip-install-reyy38ge/mysqlclient/ Complete output (12 lines): /bin/sh: mysql_config: command not found /bin/sh: mariadb_config: command not found /bin/sh: mysql_config: command not found Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/w9/lzs36g6s6jn_35qlm8ksm1lh0000gn/T/pip-install-reyy38ge/mysqlclient/setup.py", line 15, in <module> metadata, options = get_config() File "/private/var/folders/w9/lzs36g6s6jn_35qlm8ksm1lh0000gn/T/pip-install-reyy38ge/mysqlclient/setup_posix.py", line 65, in get_config libs = mysql_config("libs") File "/private/var/folders/w9/lzs36g6s6jn_35qlm8ksm1lh0000gn/T/pip-install-reyy38ge/mysqlclient/setup_posix.py", line 31, in mysql_config raise OSError("{} not found".format(_mysql_config_path)) OSError: mysql_config not found ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

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.