> Dummy.__dict__.update({"myfield":42})
Thanks for the answer! The problem is that my default value is a
callable which queries stuff from the database. So I can't assign the
value once.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
Hi winniehell,
I think this will help you.
Dummy.__dict__.update({"myfield":42})
regards
--Laxmikant Gurnalkar
On Tue, Sep 25, 2012 at 4:17 PM, winniehell wrote:
> Hello list!
>
> I try to overwrite a default value of a field in a subclass of an
> abstract model. This is how I do it curr
Hello list!
I try to overwrite a default value of a field in a subclass of an
abstract model. This is how I do it currently:
https://gist.github.com/3781124
Is there any better way? As far as I know the _meta-class API is subject
to change.
Just to be clear about that: I can not move myfield out
3 matches
Mail list logo