This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

django-admin-top-models

Put most used and important models to the top of your Django admin index.

INSTALL

pip install django-admin-top-models

Configuration

  1. Add admin_top_models to INSTALLED_APPS:

    INSTALLED_APPS = (
        ...
        'admin_top_models',
        ...
    )
    
  2. Add admin_top_models.middleware.AdminTopModelsMiddleware to MIDDLEWARE_CLASSES:

    MIDDLEWARE_CLASSES = (
        ...
        'admin_top_models.middleware.AdminTopModelsMiddleware',
        ...
    )
    
  3. Add ADMIN_TOP_MODELS_CONFIG setting to your settings.py:

    ADMIN_TOP_MODELS_CONFIG = (
        ('firstapp', ('First', 'Third')),
        ('secondapp', ('DModel', 'CModel', 'AModel')),
        ('auth',),
    )
    
  4. Adjust other options (if you need to. These are defaults):

    # should the '--------------------' spacer be added between your top and the rest models?
    ADMIN_TOP_MODELS_INSERT_SPACER = True
    
    ADMIN_TOP_MODELS_SPACER_NAME = '-' * 20
    
    # if this is set to True, order of apps and models will be the same across different languages,
    # otherwise django's order by translated names will be used.
    ADMIN_TOP_MODELS_ALWAYS_SORT_BY_OBJECT_NAME = False
    

CHANGELOG

1.1.0 (2016-08-04)

  • Fixed setuptools complaining about missing django

1.0.0 (2016-07-19)

  • Fixed settings being deadly cached
  • Added more tests to reach 100% coverage

0.0.3 (2016-07-09)

  • Fixed RST inconsistent title levels in the README

0.0.2 (2016-07-09)

  • Added README
  • Fixed IndexError when a second item of the config tuple is absent, like in ('thirdapp',)
  • Fixed spacer position shift when the config includes models which are not actually present

0.0.1 (2016-07-08)

  • Initial working version
Release History

Release History

1.1.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-admin-top-models-1.1.0.tar.gz (9.0 kB) Copy SHA256 Checksum SHA256 Source Aug 4, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting