Re: url - hot to set properly?

2011-03-27 Thread Pascal Germroth
a view that matches the opposite of your chosen schema and permanently redirects to the correct URL (or enable normalisation in your webserver, that would be easier) -- Pascal Germroth -- You received this message because you are subscribed to the Google Groups "Django users" grou

Query Builder & temporary tables

2011-03-02 Thread Pascal Germroth
this, but this feels hacky. Of course q might still return a lot of objects, so creating a list of primary keys in python and passing that as a parameter is no good either. Cheers, -- Pascal Germroth -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Query Builder forgets annotations

2011-02-27 Thread Pascal Germroth
ence once it was evaluated). I'll try to create a minimal example. -- Pascal Germroth -- 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, se

Re: foreign key reference in the 'def' to calculate tax

2011-02-26 Thread Pascal Germroth
return self.price*TaxReference.tax_multiplier > > The very last line of code is what I'm trying to accomplish. Is this what you want? def taxedprice(self): return self.price * self.tax.tax_multiplier Cheers, -- Pascal Germroth -- You received this message because you are subscribed to the G

Query Builder forgets annotations

2011-02-26 Thread Pascal Germroth
raw queries… Cheers, -- Pascal Germroth -- 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, send email to django-user

Re: Class-based views & authentication

2011-02-09 Thread Pascal Germroth
se it could not override View.dispatch in the other base classes. -- Pascal Germroth -- 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, se

Class-based views & authentication

2011-02-08 Thread Pascal Germroth
`dispatch`, add the authentication decorator as one would for function views, and call super. To make things a bit easier, I'm about to write my own mixin for that so I only have to provide a method that checks if credentials are OK. Or am I doing this completely wrong? -- Pascal Germroth

Error when editing Inline OneToOneField

2011-02-07 Thread Pascal Germroth
brought me nothing but error messages… This only seems to concern the InlineModelAdmin. When I use seperate ModelAdmin-s, everything works. Where should I look for the bug? Might it be my custom UUID-field? (but it seems to work…) Cheers, -- Pascal Germroth -- You received this message b