Hello guys!

I have another little (i'm sure it is) problem (i have like 3 days
trying to resolve it by myself but i just gave up lol), i'm using
django-tagging so I can tag some records, the problem here is that i
don't know how to take one object, take its id and then keep the
cycle. this is what i got so far:

def Records (request, UserName):
    artists = Artist.objects.get(UserName=UserName)
    try:
        records = artist.record_set.all()
    except Record.DoesNotExist:
        records = None
    record_id = # Missing code here i guess
    record_tags = Record.objects.get(id=record_id)
    RecordTags = Tag.objects.get_for_object(record_tags)

I mean, if i put a Int en record_id i can get the tags but just for
that one and i dont want that:

 {% if tags %}
           <a>Tags: | </a>{% for tags in tags %}<a>{{ tags.name }} | </
a>{% endfor %}

       {% else %}
             <a>no tags {{ id }}</a>
       {% endif %}

I hope you can help me out!
--~--~---------~--~----~------------~-------~--~----~
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