First commit
This commit is contained in:
10
profiles/admin.py
Normal file
10
profiles/admin.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from django.contrib import admin
|
||||
from .models import Profile
|
||||
|
||||
@admin.register(Profile)
|
||||
class ProfileAdmin(admin.ModelAdmin):
|
||||
"""
|
||||
Configuration de l'interface admin pour les profils.
|
||||
"""
|
||||
list_display = ('user', 'secret_note')
|
||||
search_fields = ('user__username',)
|
||||
Reference in New Issue
Block a user