old_contents: #pylint: disable=missing-docstring
  """
      Admin views for models
  """
  from django.contrib import admin
  from fitting.models import ReflectivityModel, FitProblem, ReflectivityLayer, FitterOptions, Constraint
  
  class FitProblemAdmin(admin.ModelAdmin):
      list_display = ('id', 'user', 'reflectivity_model', 'show_layers', 'remote_job', 'timestamp')
      list_filter = ('user', 'reflectivity_model__data_path')
  
  class ReflectivityModelAdmin(admin.ModelAdmin):
      list_display = ('id', 'data_path', 'scale', 'front_name', 'back_name')
      list_filter = ('data_path',)
  
  class ReflectivityLayerAdmin(admin.ModelAdmin):
      list_display = ('id', 'name', 'thickness', 'sld', 'roughness', 'layer_number')
      list_filter = ('name',)
  
  class FitterOptionsAdmin(admin.ModelAdmin):
      list_display = ('id', 'user', 'steps', 'burn')
      list_filter = ('user',)
  
  class ConstraintAdmin(admin.ModelAdmin):
      list_display = ('id', 'user', 'fit_problem', 'layer', 'parameter', 'variables')
      list_filter = ('user', 'fit_problem')
  
  admin.site.register(ReflectivityModel, ReflectivityModelAdmin)
  admin.site.register(FitProblem, FitProblemAdmin)
  admin.site.register(ReflectivityLayer, ReflectivityLayerAdmin)
  admin.site.register(Constraint, ConstraintAdmin)
  admin.site.register(FitterOptions, FitterOptionsAdmin)
  
new_contents: #pylint: disable=missing-docstring
  """
      Admin views for models
  """
  from django.contrib import admin
  from fitting.models import ReflectivityModel, FitProblem, ReflectivityLayer, FitterOptions, Constraint, SavedModelInfo
  
  class FitProblemAdmin(admin.ModelAdmin):
      list_display = ('id', 'user', 'reflectivity_model', 'show_layers', 'remote_job', 'timestamp')
      list_filter = ('user', 'reflectivity_model__data_path')
  
  class ReflectivityModelAdmin(admin.ModelAdmin):
      list_display = ('id', 'data_path', 'scale', 'front_name', 'back_name')
      list_filter = ('data_path',)
  
  class ReflectivityLayerAdmin(admin.ModelAdmin):
      list_display = ('id', 'name', 'thickness', 'sld', 'roughness', 'layer_number')
      list_filter = ('name',)
  
  class FitterOptionsAdmin(admin.ModelAdmin):
      list_display = ('id', 'user', 'steps', 'burn')
      list_filter = ('user',)
  
  class ConstraintAdmin(admin.ModelAdmin):
      list_display = ('id', 'user', 'fit_problem', 'layer', 'parameter', 'variables')
      list_filter = ('user', 'fit_problem')
  
  class SavedModelInfoAdmin(admin.ModelAdmin):
      list_display = ('id', 'user', 'fit_problem', 'title')
      list_filter = ('user',)
  
  admin.site.register(ReflectivityModel, ReflectivityModelAdmin)
  admin.site.register(FitProblem, FitProblemAdmin)
  admin.site.register(ReflectivityLayer, ReflectivityLayerAdmin)
  admin.site.register(Constraint, ConstraintAdmin)
  admin.site.register(FitterOptions, FitterOptionsAdmin)
  admin.site.register(SavedModelInfo, SavedModelInfoAdmin)
  
subject: Add admin view for saved models