Hello,

You must create it over models.py. please Take a Look Here
https://stackoverflow.com/questions/2771676/django-datetime-issues-default-datetime-now

Another field Like Lastchangefromuser you must created it AS onetoone field
in models.py and in Views you can Insert requests.user to fill current
User...

When you have further questions please wrote me

Regards

Sujata Aghor <sujatas4ag...@gmail.com> schrieb am Fr., 22. Mai 2020, 23:39:

> I am looking to create a database audit fields such as 'created by' , '
> modified by', 'created on time', ' modified on time' and Archive table
> where i can see the changes over the time about perticular row.
>
> this was possible in web2py automatically. Does anyone knows any such
> thing exist in Django?
> Any idea will be a gr8 help.
> Thanks
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/05b8bddb-d2b3-4c97-a2ef-f02ad4311e3c%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/05b8bddb-d2b3-4c97-a2ef-f02ad4311e3c%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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKGT9mz3sL7mpg1DRwX_2Fs2R1y8nM79KMg%2BsWTdqDJjUhACCQ%40mail.gmail.com.

Reply via email to