-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add branch "felix_sprint-2" to CI workflow and update admin.py files
- Loading branch information
Showing
3 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
from django.contrib import admin | ||
from rest_framework.authtoken.models import Token | ||
|
||
# Register your models here. | ||
class TokenAdmin(admin.ModelAdmin): | ||
search_fields = ('email') # Ajoutez les champs que vous souhaitez utiliser pour la recherche | ||
|
||
# Enregistrez le modèle Token avec TokenAdmin | ||
admin.site.register(Token, TokenAdmin) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
from django.contrib import admin | ||
|
||
from core.models import Task, Sport, Activity, Medicament | ||
|
||
# Register your models here. | ||
|
||
|
||
# Register Task, Sport, Activity, and Medicament models | ||
admin.site.register(Task) | ||
admin.site.register(Sport) | ||
admin.site.register(Activity) | ||
admin.site.register(Medicament) |