Skip to main content

A collection of Django utils

Project description

# IS Django Utils

Django Utils is a collection of utils for Django.

## Quick start

1. Add "django-utils" to your INSTALLED_APPS setting like this:


## AdminWithSelectRelated

- Usage:

from django_utils.admin import AdminWithSelectRelated

class AlumnoAdmin(AdminWithSelectRelated):
list_display = ('estudiante', 'seccion', 'anio_lectivo', )
list_filter = (
('seccion', SeccionFilter),
inlines = (AlumnoServicioInlineAdmin, AlumnoItemInlineAdmin, )

list_select_related = ('estudiante__profile', 'seccion__grado__anio_lectivo', )

## AdminInlineWithSelectRelated

- Usage:

from django_utils.admin import AdminInlineWithSelectRelated

class AlumnoItemInlineAdmin(AdminInlineWithSelectRelated):
model = AlumnoItem

list_select_related = ('alumno__estudiante__profile', 'item__anio_lectivo', )

## FilterWithSelectRelated

from django_utils.admin import FilterWithSelectRelated

class SeccionFilter(FilterWithSelectRelated):
list_select_related = ('grado', )

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for inspired-django-utils, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size inspired_django_utils-0.3-py3-none-any.whl (3.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size inspired-django-utils-0.3.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page