Re: Generic views and dates in the future

2006-07-27 Thread Ian Holsman
On 08/07/2006, at 12:12 AM, Jan Claeys wrote:On do, 2006-07-06 at 17:03 -0400, Jay Parlar wrote: On 7/6/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: If I were to write a backwards compatable patch, is it something you'dbe willing to put in? I'm thinking along the lines of a keywordargument 'allow

Re: Generic views and dates in the future

2006-07-27 Thread Adrian Holovaty
On 7/6/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > If I were to write a backwards compatable patch, is it something you'd > be willing to put in? I'm thinking along the lines of a keyword > argument 'allow_future' which has a default value of False. Just for the record (and to close this thread),

Re: Generic views and dates in the future

2006-07-07 Thread Jan Claeys
On do, 2006-07-06 at 17:03 -0400, Jay Parlar wrote: > On 7/6/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > > > On 7/6/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > > > What's the justification for the date based generic views not showing > > > dates in the future? > > > > The justification is:

Re: Generic views and dates in the future

2006-07-06 Thread Ian Holsman
I created a mix between the date-based generic view and the object- list view which I call 'history_view' (http://svn.zyons.python- hosting.com/trunk/zilbo/common/utils/views/filter.py ) it allows you show things starting from/ending on a specific date. an example of this is http://economy-cha

Re: Generic views and dates in the future

2006-07-06 Thread Adrian Holovaty
On 7/6/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > If I were to write a backwards compatable patch, is it something you'd > be willing to put in? I'm thinking along the lines of a keyword > argument 'allow_future' which has a default value of False. Sure, feel free to submit! Adrian -- Adrian

Re: Generic views and dates in the future

2006-07-06 Thread Jay Parlar
On 7/6/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 7/6/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > > What's the justification for the date based generic views not showing > > dates in the future? > > The justification is: The system was built for displaying "archival" > information, not

Re: Generic views and dates in the future

2006-07-06 Thread Adrian Holovaty
On 7/6/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > What's the justification for the date based generic views not showing > dates in the future? The justification is: The system was built for displaying "archival" information, not future information. We've just never had that need. Adrian -- Ad

Generic views and dates in the future

2006-07-06 Thread Jay Parlar
What's the justification for the date based generic views not showing dates in the future? I've got a model for community events that looks as follows: class Event(models.Model): title = models.CharField(maxlength=200) slug = models.SlugField(prepopulate_from=("title",)) pub_date = m