On Apr 15, 2:53 pm, "ludvig.ericson" <[EMAIL PROTECTED]> wrote:
> works better since it doesn't return the data if it exists, or am I
> missing something with name lookups?

The getattr version handles the case where new_class._meta.app_label
does exist, but is None.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to