old_contents: from wq.db.patterns import admin
  from wq.db.patterns.models import Authority, RelationshipType
  from wq.db.patterns.base import swapper
  from django.conf import settings
  
  
  class ResultInline(admin.TabularInline):
      model = swapper.load_model('vera', 'Result')
      extra = 0
  
  
  class ParameterAdmin(admin.IdentifiedModelAdmin):
      list_display = ('name', 'units')
      list_filter = ('units', 'is_numeric')
      exclude = ('contenttype',)
  
  
  class ReportAdmin(admin.ModelAdmin):
      inlines = [ResultInline]
  
  # Register models with admin, but only if they haven't been swapped
  default_admin = {
      'Site': admin.IdentifiedRelatedModelAdmin,
      'Event': admin.ModelAdmin,
      'Report': ReportAdmin,
      'ReportStatus': admin.ModelAdmin,
      'Parameter': ParameterAdmin,
  }
  for model in default_admin:
      if swapper.is_swapped('vera', model):
          continue
      admin.site.register(
          swapper.load_model('vera', model),
          default_admin[model]
      )
  
  # Auto-register relevant patterns' type models
  admin.site.register(Authority, admin.AuthorityAdmin)
  admin.site.register(RelationshipType)
  
new_contents: from wq.db.patterns import admin
  from wq.db.patterns.models import Authority, RelationshipType
  from wq.db.patterns.base import swapper
  from django.conf import settings
  
  
  class ResultInline(admin.TabularInline):
      model = swapper.load_model('vera', 'Result')
      extra = 0
  
  
  class ReportInline(admin.TabularInline):
      model = swapper.load_model('vera', 'Report')
      extra = 0
  
  
  class ParameterAdmin(admin.IdentifiedModelAdmin):
      list_display = ('name', 'units')
      list_filter = ('units', 'is_numeric')
      exclude = ('contenttype',)
  
  
  class ReportAdmin(admin.ModelAdmin):
      inlines = [ResultInline]
  
  
  class EventAdmin(admin.ModelAdmin):
      inlines = [ReportInline]
  
  # Register models with admin, but only if they haven't been swapped
  default_admin = {
      'Site': admin.IdentifiedRelatedModelAdmin,
      'Event': EventAdmin,
      'Report': ReportAdmin,
      'ReportStatus': admin.ModelAdmin,
      'Parameter': ParameterAdmin,
  }
  for model in default_admin:
      if swapper.is_swapped('vera', model):
          continue
      admin.site.register(
          swapper.load_model('vera', model),
          default_admin[model]
      )
  
  # Auto-register relevant patterns' type models
  admin.site.register(Authority, admin.AuthorityAdmin)
  admin.site.register(RelationshipType)
  
subject: allow reconfiguration of previously registered models