Somewhere the changelist I was inheriting from needed a method from the
admin site. (empty_value_display)
#from django.template import Context, loader
#shortcut to the above modules
#from django.template import Context, loader
#shortcut to the above modules
+from django.contrib.admin.sites import site as default_admin_site
from django.contrib.auth.decorators import user_passes_test
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from django.contrib.auth.decorators import user_passes_test
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
'library__library_species'],
search_fields=['flowcell__flowcell_id', 'library__id', 'library__library_name'],
list_per_page=200,
'library__library_species'],
search_fields=['flowcell__flowcell_id', 'library__id', 'library__library_name'],
list_per_page=200,
- model_admin=LaneOptions(Lane, None),
+ model_admin=LaneOptions(Lane, default_admin_site),
+from django.contrib.admin.sites import site as admin_site
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.shortcuts import render_to_response, get_object_or_404
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.shortcuts import render_to_response, get_object_or_404
list_filter=['affiliations', 'library_species'],
search_fields=['id', 'library_name', 'amplified_from_sample__id'],
list_per_page=200,
list_filter=['affiliations', 'library_species'],
search_fields=['id', 'library_name', 'amplified_from_sample__id'],
list_per_page=200,
- model_admin=LibraryOptions(Library, None),
+ model_admin=LibraryOptions(Library, admin_site),