• Stars
    star
    257
  • Rank 158,728 (Top 4 %)
  • Language
    Python
  • License
    BSD 3-Clause "New...
  • Created over 10 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Custom ordering for the apps and models in the admin app.

django-modeladmin-reorder

http://img.shields.io/travis/mishbahr/django-modeladmin-reorder.svg?style=flat-square Latest Version Downloads License

Custom ordering for the apps and models in the admin app. You can also rename, cross link or exclude models from the app list.

Features

  • Reorder apps in admin index - this will allow you to position most used apps in top of the page, instead of listing apps alphabetically. e.g. sites app before the auth app
  • Rename app labels easily for third party apps without having to modify the source code. e.g. rename auth app to Authorisation for the django admin app.
  • Split large apps into smaller groups of models.
  • Reorder models within an app. e.g. auth.User model before the auth.Group model.
  • Exclude any of the models from the app list. e.g. Exclude auth.Group from the app list. Please note this only excludes the model from the app list and it doesn't protect it from access via url.
  • Cross link models from multiple apps. e.g. Add sites.Site model to the auth app.
  • Rename individual models in the app list. e.g. rename auth.User from User to Staff

Documentation

The full documentation is at https://django-modeladmin-reorder.readthedocs.org.

Install

Install django-modeladmin-reorder:

pip install django-modeladmin-reorder

Configuration

  1. Add admin_reorder to INSTALLED_APPS:

    INSTALLED_APPS = (
        ...
        'admin_reorder',
        ...
    )
  2. Add the ModelAdminReorder to MIDDLEWARE_CLASSES:

    MIDDLEWARE_CLASSES = (
        ...
        'admin_reorder.middleware.ModelAdminReorder',
        ...
    )
  3. Add the setting ADMIN_REORDER to your settings.py:

    ADMIN_REORDER = (
        # Keep original label and models
        'sites',
    
        # Rename app
        {'app': 'auth', 'label': 'Authorisation'},
    
        # Reorder app models
        {'app': 'auth', 'models': ('auth.User', 'auth.Group')},
    
        # Exclude models
        {'app': 'auth', 'models': ('auth.User', )},
    
        # Cross-linked models
        {'app': 'auth', 'models': ('auth.User', 'sites.Site')},
    
        # models with custom name
        {'app': 'auth', 'models': (
            'auth.Group',
            {'model': 'auth.User', 'label': 'Staff'},
        )},
    )

More Repositories

1

django-users2

Custom user model for django >=1.5 with support for multiple user types.
Python
211
star
2

awesome-django-cms

A curated list of awesome django-cms add-ons. You should also checkout: https://marketplace.django-cms.org/en/
210
star
3

djangocms-forms

The easiest and most flexible Django CMS Form builder β€” Create forms quickly without ever touching code. Every field type you may need is available within a simple drag and drop interface.
Python
122
star
4

django-responsive2

django-responsive2 is an experimental Django app that gives web designers tools for building responsive websites. It can dynamically swap content based on breakpoints.
Python
34
star
5

django-usersettings2

The missing extension to the Django β€œsites” framework, use it to store additional information for your Django-powered sites.
Python
32
star
6

djangocms-youtube

YouTube embed plugin for your django-cms powered site with options for custom video thumbnails, analytics, SEO and more.
JavaScript
25
star
7

djangocms-instagram

A simple but versatile Instagram plugin for your django-cms powered sites.
Python
23
star
8

django-connected

Connect your Django powered sites to social networks and other online services.
Python
22
star
9

djangocms-gmaps

The easiest way to embed Google Maps for your django-cms powered site. This is a great way to display the location of your business or event.
Python
22
star
10

djangocms-twitter2

The easiest way to display tweets for your django-cms powered site, using the latest Twitter 1.1 API. It's a great option for embedding tweets on your site without third-party widgets.
Python
12
star
11

djangocms-disqus

Disqus intergration for your django-cms powered site with options for Single Sign-On (SSO), lazy loading, analytics and more.
Python
8
star
12

djangocms-usersettings2

This projects integrates django-usersettings2 with django-cms >= 3.0
Python
8
star
13

djangocms-responsive-wrapper

This projects integrates https://github.com/mishbahr/django-responsive2 with django-cms >= 3.0
Python
6
star
14

djangocms-fbcomments

The easiest way to integrate Facebook Comments for your django-cms powered site with lazy-loading, analytics and more.
JavaScript
6
star
15

django-staticgen

Push your django powered site to Amazon S3.
Python
5
star
16

django-fwdform

Simple and painless form processing for static sites.
Python
3
star
17

staticgen-demo

Source for http://staticgen-demo.herokuapp.com
Python
3
star
18

djangocms-embed

Embed any content on the web. Powered by embed.ly.
Python
1
star
19

djangocms-layout

Produce a wonderful columned design in a matter of seconds β€” [WIP]
Python
1
star