equal
deleted
inserted
replaced
4 from django.contrib.databrowse.sites import DatabrowsePlugin |
4 from django.contrib.databrowse.sites import DatabrowsePlugin |
5 from django.shortcuts import render_to_response |
5 from django.shortcuts import render_to_response |
6 from django.utils.text import capfirst |
6 from django.utils.text import capfirst |
7 from django.utils.encoding import smart_str, force_unicode |
7 from django.utils.encoding import smart_str, force_unicode |
8 from django.utils.safestring import mark_safe |
8 from django.utils.safestring import mark_safe |
9 from django.views.generic import date_based |
|
10 import urllib |
9 import urllib |
11 |
10 |
12 class FieldChoicePlugin(DatabrowsePlugin): |
11 class FieldChoicePlugin(DatabrowsePlugin): |
13 def __init__(self, field_filter=None): |
12 def __init__(self, field_filter=None): |
14 # If field_filter is given, it should be a callable that takes a |
13 # If field_filter is given, it should be a callable that takes a |