Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def searche_web_casename(request):
username = request.session.get('user', '')
webcases = Webcase.objects.all()
return render(request,"Web_test_robotframework.html", {"user": username, "webcases":webcases})
class WebcasestepAdmin(admin.TabularInline):
list_display = ['webtestlocation','webfindmethod','webkwargesone','webkwargestwo','webkwargesthree','webassertdata','webtestresult','webcomments','Webcase','id']
model = Webcasestep
extra = 0
search_fields = ('webfindmethod')
def delete_queryset(self,request,queryset):
for object in queryset.filter():
object.state =0
object.update_time = datetime.now()
object.save()
class WebcaseAdmin(admin.ModelAdmin):
list_display = ['webcasename','id']
inlines = [WebcasestepAdmin]
admin.site.register(Webcase,WebcaseAdmin)