I've got basically the same problem (trying to have rankings available different places). I've been looking at Generic Relations and Content_type, and think I get it on a conceptual level, but there's something I'm missing.
I'm passing the content_type (and an id) in the URL so the view will know what I'm dealing with: (r'^vote/(?P<content_type>[-\w]+)/(?P<obj_id>\d+)/(?P<vote>up|down)/$', 'gretschpages.karma.views.vote'), So then in the view I need to get whatever object is being voted on, right? I'm trying: obj = ContentType.objects.get_for_model(content_type) but that throws 'str' object has no attribute '_meta' So how do I get that object? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---