django edit model data in django view
emp = Employee.objects.get(pk = emp_id)
emp.name = 'Somename'
emp.save()
Are there any code examples left?
New code examples in category Python
emp = Employee.objects.get(pk = emp_id)
emp.name = 'Somename'
emp.save()