Skip to content

Commit

Permalink
add migration
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Jun 18, 2024
1 parent f5830bb commit 69d2518
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions breathecode/notify/admin.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
import logging

from django import forms
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django import forms
from .utils.hook_manager import HookManager
from .models import Device, SlackTeam, SlackChannel, SlackUser, UserProxy, CohortProxy, SlackUserTeam
from .actions import sync_slack_team_channel, send_slack
from .tasks import async_slack_team_users
from breathecode.admissions.admin import CohortAdmin as AdmissionsCohortAdmin
from django.utils.html import format_html
from django.template.defaultfilters import escape
from django.urls import reverse
from django.utils.html import format_html

from breathecode.admissions.admin import CohortAdmin as AdmissionsCohortAdmin
from breathecode.utils import AdminExportCsvMixin

from .actions import send_slack, sync_slack_team_channel
from .models import CohortProxy, Device, HookError, SlackChannel, SlackTeam, SlackUser, SlackUserTeam, UserProxy
from .tasks import async_slack_team_users
from .utils.hook_manager import HookManager

logger = logging.getLogger(__name__)


Expand Down Expand Up @@ -159,3 +162,10 @@ class HookAdmin(admin.ModelAdmin):


admin.site.register(HookModel, HookAdmin)


@admin.register(HookError)
class HookErrorAdmin(admin.ModelAdmin):
list_display = ['event', 'message', 'created_at', 'updated_at']
search_fields = ['message', 'event']
list_filter = ['event']

0 comments on commit 69d2518

Please sign in to comment.