On 3/30/07, drackett <[EMAIL PROTECTED]> wrote:
> I see.. if there were more than one item in there, the last comma
> isn't necessary anymore, correct?
Correct. The comma is needed on a single-element tuple so that Python
can distinguish between something that's in parentheses for grouping
(e.g.,
I see.. if there were more than one item in there, the last comma
isn't necessary anymore, correct?
('more', { 'classes': 'collapse', 'fields' : ('entry_date',
'entry_something') }),
On Mar 30, 2:50 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 3/30/07, drackett <[EMAIL PROTECTED]> wrote:
On 3/30/07, drackett <[EMAIL PROTECTED]> wrote:
> ('more', { 'classes': 'collapse', 'fields' :
> ('entry_date') }),
This line is the culprit; change it to
('more', { 'classes': 'collapse', 'fields' : ('entry_date',) }),
Take note of the comma after 'entry_date'.
The er
I am trying to setup field sets on my first project, however, when I
add the admin section below, I get the error "My_blog has no field
named 'e' " This error goes away if I remove the "fields=" from below.
I got the code straight from the documentation, what am I doing
wrong? :\
Thanks!
class M
I am trying to setup field sets on my first project, however, when I
add the admin section below, I get the error "My_blog has no field
named 'e' " This error goes away if I remove the "fields=" from below.
I got the code straight from the documentation, what am I doing
wrong? :\
Thanks!
class M
5 matches
Mail list logo