Re: extends headaches

2008-02-07 Thread AmanKow
On Feb 7, 2:26 pm, AmanKow <[EMAIL PROTECTED]> wrote: > BTW, do I understand this correctly... > {# comment #} is alright, but {% comment %} ... {% endcomment %} is > not? I don't see anything in the code that would allow block > comments. Would be nice if it did... This could be implemented

Re: extends headaches

2008-02-07 Thread AmanKow
I've reopened http://code.djangoproject.com/ticket/5124. 'contains_nontext' must be an instance attribute, not a class attribute in 'NodeList'. There is a patch attached. Wayne --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Enhancement to edit_inline

2008-02-07 Thread James Bennett
On Feb 7, 2008 8:29 AM, MikeH <[EMAIL PROTECTED]> wrote: > So I modified the admin app to let you override the edit inline templates in > your own applications, > using the admin/app_name/model_name/edit_inline_(stacked|tabular).html > convention that the other admin templates use. > > The diff

Re: extends headaches

2008-02-07 Thread David Larlet
Thanks, I try to do my best and five mistakes in the same sentence is not that bad ;) Cheers, David Le 7 févr. 08 à 15:31, J. Cliff Dyer a écrit : > > I made a couple of minor grammatical changes for clarity, but your > english was pretty good, David. > > Cheers, > Cliff > > On Thu,

Re: extends headaches

2008-02-07 Thread J. Cliff Dyer
I made a couple of minor grammatical changes for clarity, but your english was pretty good, David. Cheers, Cliff On Thu, 2008-02-07 at 15:06 +0100, David Larlet wrote: > > Le 6 f�vr. 08 � 21:01, SmileyChris a �crit : > > > > > On Feb 6, 9:43 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > >

Enhancement to edit_inline

2008-02-07 Thread MikeH
Hi all, I wanted to use edit_inline for some of my models, but wanted to customise the templates that were used. So I modified the admin app to let you override the edit inline templates in your own applications, using the admin/app_name/model_name/edit_inline_(stacked|tabular).html convention

Re: extends headaches

2008-02-07 Thread David Larlet
Le 6 févr. 08 à 21:01, SmileyChris a écrit : > > On Feb 6, 9:43 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: >> It already results in a broken site, we're now just being a lot >> clearer >> about that. > > Actually, it only resulted previously in a broken site if the extended >

Re: Bug saving NUL character?

2008-02-07 Thread Patryk Zawadzki
On Feb 7, 2008 4:15 AM, Alexandre Martani <[EMAIL PROTECTED]> wrote: > Hi, > When I try to save a string containing NUL character (\x00), only the > part before the character is saved. I have created a simple model: > > class Test(models.Model): >content = models.TextField() Text fields are

custom model field validation

2008-02-07 Thread Mackenzie Kearl
I am having trouble finding documentation on how to add custom validation to a custom model field. example: class PostalField(models.CharField): def __init__(self,*args,**kwargs): kwargs['max_length']= 6 super(PostalField, self).__init__(*args, **kwargs)