On Mon, Apr 16, 2012 at 10:11 AM, Mario Gudelj <mario.gud...@gmail.com> wrote:
> I think I need to somehow pass the business object to model = Payment inside
> the Meta class...

how many 'business' options are there?

if it's a fixed num, you could add a Proxy 'subclass' for each one
that simply provides the apropriate parameter in the constructor.

if not fixed but small quantity (say, less than a hundred), maybe you
could create those Proxies programatically?

if it's an unbounded number of different 'business objects', then
you'll have to override the model construction parts of the form.... i
guess a mixin class would be easiest to carry to several forms.


-- 
Javier

-- 
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