|
ashgromnies posted:But how can I do that since the PublishDate is a DateTimeField and I only want to compare the day, month and year and not the time? http://www.djangoproject.com/documentation/model-api/#unique-for-date Would that be what you're looking for?
|
# ¿ Mar 13, 2008 18:23 |
|
|
# ¿ May 5, 2024 16:18 |
|
It's not working because of the "auto_now_add=True" in the PublishDate. If you manually create the same date for the post, it will raise an error and prompt you to change the slug. As for how to get Django to behave probably requires a fix in Django.
|
# ¿ Mar 14, 2008 02:05 |
|
http://www.youtube.com/view_play_list?p=D415FAF806EC47A1 A more comprehensive list.
|
# ¿ Sep 16, 2008 03:56 |