I've this model

class DistributionList(CommonList):
    distributionListID = models.IntegerField()

NB: CommonList is another model with abstract=True in Meta class. (Abstract 
Base Class)

Now, On the initialization of this DistributionList(whether newly created or 
retrieved from db), I've to call a web service with distributionListID as 
parameter and associate the return value (say of class Foo) with the 
instance.

I think post_init signal is the way. Am I right? (or is it overriding 
__init__ )

Does the call to save store instance of Foo, that I set in __init__ or with 
post_init signal in database?

If it does, then,  I don't need the returned instance of Foo to be stored in 
db when save method of distributionList is called.
Else, which is the best way, overriding __init__ or using post_init

-- 
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 group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to