backend/links/admin.py

15 lines
242 B
Python
Raw Normal View History

2023-11-22 16:01:05 +03:00
from django.contrib import admin
from links.models import Link
# Register your models here.
class LinkAdmin(admin.ModelAdmin):
list_display = ("name", "url")
search_fields = ['name', 'url']
admin.site.register(Link, LinkAdmin)