Git Product home page Git Product logo

django-linnaeus's Introduction


#                                                   
#       # #    # #    #   ##   ###### #    #  ####  
#       # ##   # ##   #  #  #  #      #    # #      
#       # # #  # # #  # #    # #####  #    #  ####  
#       # #  # # #  # # ###### #      #    #      # 
#       # #   ## #   ## #    # #      #    # #    # 
####### # #    # #    # #    # ######  ####   #### 

Classification tools for the Django admin.

(Further documentation TK)

django-linnaeus's People

Stargazers

Allan James Vestal avatar

Watchers

Allan James Vestal avatar James Cloos avatar

django-linnaeus's Issues

Allow for other buttons on model index listings

I'm specifically thinking of a 'map' button for the data streams.

You could do this by creating an admin.ModelActionButton object in the relevant admin.py. It would require the action name, icon and sub-URL (off the base one for this model, exempli gratia /datastream/data/fire_dispatches/dispatch/map/).

The object would also be able to accept the ID of a permission object to decide whether users could take that action. This would determine if users could see that extra button. Finally you could set a priority for the button, to determine whether it would show up to the left or the right of the others.

Then you'd tie that into the existing add and change buttons by configuring an index_model_actions setting on the model (it would default to new representations of the existing buttons); you could also then import one or both of those and show just what you wanted to).

Finally you'd want to set the main link on an app to perform one of the buttons' action. You'd have another configurable setting like index_model_default, which would itself default to the standard change action.

Allow app labels to be hidden on index

Just as it says. You could have three models from three apps and it would look like they were all from one. This would be relatively easy to do with an option like show_models_by_app, which could default to being true. You'd still have apps enumerated in the URL, but otherwise this would be quite simplifying.

Eventually you could also hide app names from the breadcrumbs if this or a similar switch is flipped. (I'd say have a show_app_in_breadcrumbs that would default to the same bool value as the above, except of course on app index pages.

Allow models to have custom index views

Each model's admin could have a setting front_page_view which would replace the standard "model add change" slot with expanded or tailored information.

You'd need at least three settings: front_page_view for the topmost admin page, type_page_view for the per-type list and app_index_page_view for the per-app-and-type list. (There'll be sane defaults, so if you want all three you can just set front_page_view and if you want the last two you can set type_page_view.)

Improve README and docs

Add description and installation instructions to the former and lists of available linnaeus_conf options to the latter.

Be able to hide admin types from the index

Have a hidden_from_index param in each TypeConfig (with a default of false) that, if selected, would keep all models in a given category from showing on the index page (they'd still be accessible direct from their URLs assuming a user had requisite permissions to change them).

Rework as needed for Django 1.4

To include removal of admin.site.root_path from available options [replaced with reverse('admin:front-page')], tweaks to filter_horizontal and _vertical M2Ms, date/time widgets and maybe more.

Decouple Linnaeus from Nando features

This mainly means having a sidebar template separate from Nando's announcements (and maybe having the option to take the index pages full-width instead of having a sidebar).

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.