mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-16 02:16:16 +00:00
changes
This commit is contained in:
14
junior/admin.py
Normal file
14
junior/admin.py
Normal file
@ -0,0 +1,14 @@
|
||||
"""Junior admin"""
|
||||
"""Third party Django app"""
|
||||
from django.contrib import admin
|
||||
"""Import Django app"""
|
||||
from .models import Junior
|
||||
# Register your models here.
|
||||
@admin.register(Junior)
|
||||
class JuniorAdmin(admin.ModelAdmin):
|
||||
"""Junior Admin"""
|
||||
list_display = ['auth']
|
||||
|
||||
def __str__(self):
|
||||
"""Return email id"""
|
||||
return self.auth__email
|
Reference in New Issue
Block a user