from django.contrib import admin

from .models import ShortURL


@admin.register(ShortURL)
class ShortURLAdmin(admin.ModelAdmin):
    list_display = ('short_id', 'redirect_url')
    readonly_fields = ('short_id', 'creator_ip', 'transitions_number')
    list_filter = ('redirect_url',)
    search_fields = ('redirect_url',)

bbff3a28d13d51414794b54d7436099e97bf75df
<mask token>

<mask token>


@admin.register(ShortURL)
class ShortURLAdmin(admin.ModelAdmin):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


@admin.register(ShortURL)
class ShortURLAdmin(admin.ModelAdmin):
    list_display = 'short_id', 'redirect_url'
    readonly_fields = 'short_id', 'creator_ip', 'transitions_number'
    list_filter = 'redirect_url',
    search_fields = 'redirect_url',

from django.contrib import admin
from .models import ShortURL


@admin.register(ShortURL)
class ShortURLAdmin(admin.ModelAdmin):
    list_display = 'short_id', 'redirect_url'
    readonly_fields = 'short_id', 'creator_ip', 'transitions_number'
    list_filter = 'redirect_url',
    search_fields = 'redirect_url',

from django.contrib import admin

from .models import ShortURL


@admin.register(ShortURL)
class ShortURLAdmin(admin.ModelAdmin):
    list_display = ('short_id', 'redirect_url')
    readonly_fields = ('short_id', 'creator_ip', 'transitions_number')
    list_filter = ('redirect_url',)
    search_fields = ('redirect_url',)
