Hi, Pankaj
thanks for the tips!
i try all the way,
it not success , any syntax please.
mean time i success to delete the record code as below: (but i just want to
inactive the record of particular employee) history might need for audit
purpose.
def delete(request,id):
employee=Employee.objects.get(id=id)
employee.delete()
return redirect('/home1')
Regards
On Friday, January 7, 2022 at 7:29:18 PM UTC+5:30 [email protected]
wrote:
> Then simply make that records inactive by adding one flag in table and
> instead of deleting make It inactive
>
> On Fri, 7 Jan, 2022, 7:22 pm Feroz Ahmed, <[email protected]> wrote:
>
>> Hi,
>> How to delete user salary record , but want to keep history till deleted
>> date.
>>
>> ex:
>>
>> 1. Month June
>> 2. Month July
>> 3. Month Aug
>> 4. delete user record from Sep.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/f2ba2f5f-ed12-45e5-8d2a-d2b1b2590154n%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/django-users/f2ba2f5f-ed12-45e5-8d2a-d2b1b2590154n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/7ebc8721-d3c1-4f2b-8c18-384820a8483fn%40googlegroups.com.