Look like it is task for OOP list ;-)
 But I hope next can help you

class ParentClass(object):
    def __init__(self, name):
        print "Constructor parent"
        print "Called from ", name
class ChildClass(ParentClass):
    def __init__(self):
        super(ChildClass,self).__init__("Child")
        print "Child Constructor"



def main():

    a = ChildClass()
if __name__== "__main__":
    main()


Many thanks,

Serge


+380 636150445
skype: skhohlov


On Fri, Jul 12, 2013 at 7:47 AM, Mike Dewhirst <mi...@dewhirst.com.au>wrote:

> I have four models, all of which inherit the fields and methods of a
> single abstract model.
>
> For one of those abstract fields, I would like help_text to vary depending
> on which model has inherited it.
>
> Is this possible?
>
> If so, how can I do it?
>
> Thanks
>
> Mike
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to 
> django-users+unsubscribe@**googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at 
> http://groups.google.com/**group/django-users<http://groups.google.com/group/django-users>
> .
> For more options, visit 
> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
> .
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to