> <snip> >> The problem is you are defining get_class as >> an instance method and trying to call it is a class method (or static >> method). > > Sorry, I have no idea what you're referring to here, and Googling for > static vs. class methods is not turning up anything I can understand. > Can you show what you mean by example? (i.e. how it pertains to this > problem)? > > Thanks.
http://docs.python.org/library/functions.html#staticmethod It means that the method is function that, when you run it, doesn't specifically belong to any particular instance, but to the class itself. Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.