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

This version
History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
inspired_django_utils-0.3-py3-none-any.whl (3.2 kB) Copy SHA256 hash SHA256 Wheel py3
inspired-django-utils-0.3.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page