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
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
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
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
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
'
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
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?
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,
-
8 matches
Mail list logo