mirror of
https://github.com/Sosokker/ku-polls.git
synced 2025-12-18 21:14:05 +01:00
In this commit, I change default field of pub_date into auto_add_now and it change the way pub_date assign work so I need to add several updates to address issues and errors in the code and tests related to the handling of the pub_date attribute in the Question model. Test Updates - Modified the create_question function in tests to accept pub_date when necessary and set it explicitly in the tests to match the new model definition. Ensured the correct ordering of past questions in the index view. Model Update - Modified the Question model to use auto_now_add=True for pub_date to set it to the current date and time automatically. |
||
|---|---|---|
| .. | ||
| migrations | ||
| static/polls | ||
| templates | ||
| __init__.py | ||
| admin.py | ||
| apps.py | ||
| models.py | ||
| tests.py | ||
| urls.py | ||
| views.py | ||