old_contents: from django.contrib import admin
  from openinghours.models import OpeningHours, ClosingRules, Company, PREMISES_MODEL
  
  
  admin.site.register(OpeningHours)
  admin.site.register(ClosingRules)
  if PREMISES_MODEL == 'openinghours.Company':
      admin.site.register(Company)
  
new_contents: from django.contrib import admin
  from openinghours.models import OpeningHours, ClosingRules, Company, PREMISES_MODEL
  
  class OpeningHoursAdmin(admin.ModelAdmin):
      raw_id_fields = ('company',)
  
  admin.site.register(OpeningHours, OpeningHoursAdmin)
  admin.site.register(ClosingRules)
  if PREMISES_MODEL == 'openinghours.Company':
      admin.site.register(Company)
  
subject: Make admin to play nicely with 10,000 companies. - Companies will need admin inlines