new_contents: from django.contrib import admin
  
  from .models import RedirectURL
  
  
  class RedirectURLAdmin(admin.ModelAdmin):
      list_display = ('url', 'short_url', 'hits', 'last_used', 'user', 'campaign', 'medium',)
      list_filter = ('user__username', 'campaign', 'medium',)
      ordering = ('-last_used',)
      readonly_fields = ('short_url', 'qr_code', 'hits', 'last_used',)
      search_fields = ['url', 'campaign']
  
      fieldsets = ((None, {'fields': ('url', 'short_url',)}),
                   ('Google', {'fields': ('campaign', 'medium', 'content',)}),
                   ('Additional info', {'fields': ('description', 'qr_code',)}),
                   ('Short URL Usage', {'fields': ('hits', 'last_used',)}),)
  
      def save_model(self, request, obj, form, change):
          obj.user = request.user
          obj.save()
  
  
  admin.site.register(RedirectURL, RedirectURLAdmin)
  
subject: Add admin site integration