On 11/22/05, Krzysztof Drozd <[EMAIL PROTECTED]> wrote: > it would by nice to have a new extra field in the django admin panel > thats can work as a publish un publish poll/site/... or > publish_on_date. > > now django show all stufffs in the DB, what when i have write a TEXT or > Poll and won publish it in next week??
Hi Krzysztof, That's very easy to do. Just add a pub_date field to your model and check that field's value in your view, so that whenever you retrieve polls from the system, you check the pub_date is less than or equal to datetime.datetime.now(). Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org