Cheng Zhang wrote:
>I tried lookup like Article.objects.filter(id__in = []), which will
>have SQL statement whose where clause is something like 'WHERE
>("poll_article"."id" IN ())'. Such SQL statement is ok with SQLite
>but invalid for PostgreSQL.
>
>I work around this problem with code
Hi, folks
I tried lookup like Article.objects.filter(id__in = []), which will
have SQL statement whose where clause is something like 'WHERE
("poll_article"."id" IN ())'. Such SQL statement is ok with SQLite
but invalid for PostgreSQL.
I work around this problem with code like:
if
Hi,
I'm trying to set up a custom manipulator for a timesheet app. I don't
have the code in front of me at the moment but I'll try to create a
extremely simplified example (they'll be errors since I don't have
Django on this computer to validate the code, but it's just to give you
a better
On Sat, Apr 29, 2006 at 08:20:30PM -0500, James Bennett wrote:
> In the tutorial, the field on the Choice model ('poll') is the same as
> the name of the model it's being related to ('poll'), which is why it
> looks that way. Whenever they're different, you want to use the name
> of the field on
On 4/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> This is not what I understood from reading and practicing the tutorial
> 1:
In the tutorial, the field on the Choice model ('poll') is the same as
the name of the model it's being related to ('poll'), which is why it
looks that way.
On 4/28/06, Luis P. Mendes <[EMAIL PROTECTED]> wrote:
> class Servico(meta.Model):
> ~codigo = meta.TextField(maxlength=4)
> ~nome = meta.CharField(maxlength=80)
>
> ~def __repr__(self):
> ~return self.nome
>
> class Cadastro(meta.Model):
> ~
Hello list members!
Since yesterday I am testing around with Django, and this GREAT tool
impresses me a lot!
So, I still play with the poll tutorial. I trying to make some
improvements to it's code, to learn techniques I will use in future
work.
I.e. I added image-upload. Adding works
Malcolm,
Thanks for the explanation.
Richard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group,
This is not what I understood from reading and practicing the tutorial
1:
# The API automatically follows relationships as far as you need.
# Use double underscores to separate relationships.
# This works as many levels deep as you want. There's no limit.
# Find all Choices for any poll whose
On Sat, 2006-04-29 at 14:49 +0200, Petar Marić wrote:
> Looking through some recent changes I noticed that some M-R code uses
> __repr__ and some new checkins use __str__
>
> Is there anything we need to know?
Short answer:
You need to know that Django is coming around to the Pythonic way of
Looking through some recent changes I noticed that some M-R code uses
__repr__ and some new checkins use __str__
Is there anything we need to know?
--
Petar Marić
*e-mail: [EMAIL PROTECTED]
*mobile: +381 (64) 6122467
*icq: 224720322
*skype: petar_maric
*web: http://www.petarmaric.com/
Matthew Flanagan schrieb:
> I can confirm that i'm seeing this padding issue in safari and the
> webkit inspector shows:
> padding-top:10px;
> padding-right:20px;
> padding-bottom:10px;
> padding-left:20px;
>
> I've been seeing it since wilson did the split of all the css files a
> while back
On Sat, 2006-04-29 at 03:20 -0700, RichardH wrote:
> Hello. I am new to django but have had 0.91 working on Windows XP. Just
> tried the 0.92 svn version of magic-removal (reports 0.91), but it
> comes up with an IndexError on one of the examples. I note that all of
> the code/documentation for
Hello. I am new to django but have had 0.91 working on Windows XP. Just
tried the 0.92 svn version of magic-removal (reports 0.91), but it
comes up with an IndexError on one of the examples. I note that all of
the code/documentation for magic-removal seems to be Linux based. Am I
pushing too far
14 matches
Mail list logo