@permission_required([('AccountLookup', 'View')])
def app_activity(request, addon_id):
 app = get_object_or_404(Webapp.with_deleted, pk=addon_id)
 user_items = ActivityLog.objects.for_apps([app]).exclude(action__in=mkt.LOG_HIDE_DEVELOPER)
 admin_items = ActivityLog.objects.for_apps([app]).filter(action__in=mkt.LOG_HIDE_DEVELOPER)
 user_items = paginate(request, user_items, per_page=20)
 admin_items = paginate(request, admin_items, per_page=20)
 return render(request, 'lookup/app_activity.html', {'admin_items': admin_items, 'app': app, 'user_items': user_items})

@ permission_required ( [ ( 'AccountLookup' , 'View' ) ] ) def app_activity ( request , addon_id ) : app = get_object_or_404 ( Webapp . with_deleted , pk = addon_id ) user_items = ActivityLog . objects . for_apps ( [ app ] ) . exclude ( action__in = mkt . LOG_HIDE_DEVELOPER ) admin_items = ActivityLog . objects . for_apps ( [ app ] ) . filter ( action__in = mkt . LOG_HIDE_DEVELOPER ) user_items = paginate ( request , user_items , per_page = 20 ) admin_items = paginate ( request , admin_items , per_page = 20 ) return render ( request , 'lookup/app_activity.html' , { 'admin_items' : admin_items , 'app' : app , 'user_items' : user_items } )
shows the app activity age for single app .