mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-17 10:55:09 +00:00
jira-15 top leadership API
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
"""Third party Django app"""
|
||||
from django.contrib import admin
|
||||
"""Import Django app"""
|
||||
from .models import Junior
|
||||
from .models import Junior, JuniorPoints
|
||||
# Register your models here.
|
||||
@admin.register(Junior)
|
||||
class JuniorAdmin(admin.ModelAdmin):
|
||||
@ -12,3 +12,12 @@ class JuniorAdmin(admin.ModelAdmin):
|
||||
def __str__(self):
|
||||
"""Return email id"""
|
||||
return self.auth__email
|
||||
|
||||
@admin.register(JuniorPoints)
|
||||
class JuniorPointsAdmin(admin.ModelAdmin):
|
||||
"""Junior Points Admin"""
|
||||
list_display = ['junior', 'total_task_points']
|
||||
|
||||
def __str__(self):
|
||||
"""Return email id"""
|
||||
return self.junior.auth.email
|
||||
|
Reference in New Issue
Block a user