Hello, I am seeking to do something like this:
def dynamic_model_call(model_name): test = model_name.objects.all() return test I saw where I could do something like this: def dynamic_model_call(model_name): exec("test = %s.objects.all()" % model_name) return test But this doesn't look like an appropriate solution. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---