Skip to content

Instantly share code, notes, and snippets.

View dtatarkin's full-sized avatar

Dmitriy Tatarkin dtatarkin

  • unest.co
  • Turkey
View GitHub Profile
@hakib
hakib / admin.py
Created December 9, 2017 08:37
Django Admin InputFilter
# common/admin.py
class InputFilter(admin.SimpleListFilter):
template = 'admin/input_filter.html'
def lookups(self, request, model_admin):
# Dummy, required to show the filter.
return ((),)
def choices(self, changelist):