<filename>payment/admin.py
from django.contrib import admin
from payment.models import Recharge
from django.contrib import admin
from django.contrib.auth.decorators import login_required

# # Register your models here.

admin.site.login = login_required(admin.site.login)
admin.site.register(Recharge)


<filename>payment/admin.py
from django.contrib import admin
from payment.models import Recharge
from django.contrib import admin
from django.contrib.auth.decorators import login_required

# # Register your models here.

admin.site.login = login_required(admin.site.login)
admin.site.register(Recharge)


# # Register your models here.