This commit is contained in:
2024-11-14 02:06:21 +08:00
commit 29ce03dbc5
24 changed files with 1042 additions and 0 deletions

15
short_url/admin.py Normal file
View File

@ -0,0 +1,15 @@
from django.contrib import admin
from .models import ShortUrl
@admin.register(ShortUrl)
class ShortUrlAdmin(admin.ModelAdmin):
list_display = (
"id",
"alias",
"target",
"created_at",
"updated_at",
)
search_fields = ["alias", "target"]