In django, I need a textfield and a button in django admin, but I don't want to save that textfield in database. For example I have a textfield named age. I need to a textfield to enter birthday.By clicking on button I will calculate age and assign to age field. This is only a example!
Asked
Active
Viewed 93 times
1 Answers
1
Possible by using custom ModelAdmin with a custom Form but this can be done automatically while saving the object
here is Custom ModelAdmim Form

Mohamed ElKalioby
- 1,908
- 1
- 12
- 13
-
Hello. Thanks. I found my soulotion at https://stackoverflow.com/questions/23887961/django-how-can-i-modify-text-before-save-them-to-database/23888157 – Darwin Jun 19 '21 at 12:57
-
Can you accept answer to close the question. – Mohamed ElKalioby Jun 19 '21 at 12:59