http://django.pastebin.com/713796
I get a "tuple' object has no attribute 'get'" error whenever I try
to add a new Post.
Stack trace here: http://django.pastebin.com/713819
Any ideas?
Thanks,
Tyson
Just a hunch. You have a comma at the end of the fields tuple in your
Admin inner class (line 36 according to the pastebin). Maybe that's it?
Don
I deleted the comma, but I still get the same error.
-Tyson
http://django.pastebin.com/713796 seems to have expired, why not just
paste the code here? This ain't IRC.
>
>
> Just a hunch. You have a comma at the end of the fields tuple in your
> Admin inner class (line 36 according to the pastebin). Maybe that's it?
One of the nice things about python is that trailing commas are
completely legal.
>
> Don
>
>
>
> >
>
>
> One of the nice things about python is that trailing commas are
> completely legal.
Yes, but this was not a trailing comma within the tuple, but at the
end of the statement. Legal or not, I have never seen this (except,
in the print statement, which suppresses the newline). I mentioned it
only because I thought it may have changed the semantics of the code,
not that it was a syntax error.
Don