mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-15 18:07:02 +00:00
sonar issue
This commit is contained in:
@ -2,9 +2,16 @@
|
||||
from django.contrib import admin
|
||||
|
||||
"""Import django app"""
|
||||
from .models import UserEmailOtp, UserPhoneOtp, DefaultTaskImages, UserNotification
|
||||
from .models import UserEmailOtp, UserPhoneOtp, DefaultTaskImages, UserNotification, UserDelete
|
||||
# Register your models here.
|
||||
|
||||
@admin.register(UserDelete)
|
||||
class UserDeleteAdmin(admin.ModelAdmin):
|
||||
"""User profile admin"""
|
||||
list_display = ['user', 'old_email', 'd_email']
|
||||
|
||||
def __str__(self):
|
||||
return self.user
|
||||
@admin.register(UserNotification)
|
||||
class UserNotificationAdmin(admin.ModelAdmin):
|
||||
"""User profile admin"""
|
||||
|
Reference in New Issue
Block a user