So I'm trying to access a manytomany relationship in my template but
it comes out as something like [Classes : testing] on the web-page.

Models :

class Classes(models.Model):
     title = CharField(max_length=40)

class Testing(models.Model):
     classes = ManyToManyField(Classes)

URLs :

from random.models import *

random_dict = {
        'queryset': Testing.objects.all(),
        'allow_empty': True,
        'template_name': 'random/index.html',
}

(r'^$', 'django.views.generic.list_detail.object_list', random_dict),

Template :

{% for object in object_list %}
{{ object.classes.all }}
{% endfor %}

How do I just make it display the title object of the class?

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

Reply via email to