Thanks Daniel and Bruno, your tips were gr8. It helped me out a lot.
I am a newbie in python as well as Django, and I m trying to learn
them ASAP.
I had to finish some work quickly and so had pushed the question
here.
Thanks anyways
-Saurav
On Feb 6, 2:24 pm, bruno desthuilliers
wrote:
> On
On 6 fév, 08:01, Saurav wrote:
> Hi,
>
> I want to know if its possible to convert a string object into class
> object.
I assume you mean "retrieve an existing class object by it's name".
(snip)
> http://dpaste.com/117323/
>
> at line no 40,
f = model_name.__name__+"Form"(instance=a)
Won't
On Feb 6, 7:01 am, Saurav wrote:
> Hi,
>
> I want to know if its possible to convert a string object into class
> object.
> Basically Im trying to make some generic methods for changing the data
> in the models
>
> For your convinience, Im providing you the link to the code where Im
> facing the
3 matches
Mail list logo