Skip to content

Commit

Permalink
Add branch "felix_sprint-2" to CI workflow and update admin.py files
Browse files Browse the repository at this point in the history
  • Loading branch information
FeloxleF committed Mar 18, 2024
1 parent 538a03e commit fe19281
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Django CI

on:
push:
branches: [ "main" ]
branches: [ "main" , "felix_sprint-2" ]
pull_request:
branches: [ "main" ]

Expand Down
7 changes: 6 additions & 1 deletion activmindback/core/admin.py
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)

9 changes: 9 additions & 0 deletions activmindback/tasks/admin.py
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)

0 comments on commit fe19281

Please sign in to comment.