Re: url - hot to set properly?

2011-03-27 Thread Pascal Germroth
d choose a schema (/ or not) and stick with it. Even better: create 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

Query Builder & temporary tables

2011-03-02 Thread Pascal Germroth
a cursor to run 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 &q

Re: Query Builder forgets annotations

2011-02-27 Thread Pascal Germroth
erference 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

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

Query Builder forgets annotations

2011-02-26 Thread Pascal Germroth
cks fields. But I don't want to have to resort to completely 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@googlegroup

Re: Class-based views & authentication

2011-02-09 Thread Pascal Germroth
' LoginMixin *must* be the first base class, otherwise 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 djang

Class-based views & authentication

2011-02-08 Thread Pascal Germroth
ave to override `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?

Error when editing Inline OneToOneField

2011-02-07 Thread Pascal Germroth
ses). Playing around with fk_name on the inline admin 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, -