demo-hackernews-with-django.../app/api/admin.py
Andros Fenollosa a901b8d54a Add API
2021-06-22 15:43:26 +02:00

10 lines
194 B
Python

from django.contrib import admin
from app.api.models import News
@admin.register(News)
class NewsAdmin(admin.ModelAdmin):
readonly_fields = ('votes',)
list_display = ('title', 'url')