﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22249	Cannot resolve keyword '' into field. Choices are:...	srnsht@…	nobody	"I am having this weird problem accessing ManyToManyField.

I have following models.

class Link(models.Model):
    title = models.CharField(max_length = 200)
    url = models.URLField(unique = True)
    tags = models.ManyToManyField(Tag)
    creation_date = models.DateTimeField(auto_now_add = True)
    user = models.ForeignKey(User)
    likes = models.ManyToManyField(User, related_name = ""%(app_label)s_%(class)s_user_likes"")
    dis_likes = models.ManyToManyField(User, related_name = ""%(app_label)s_%(class)s_user_dis_likes"")

    class Meta:
        abstract = True

class URL(Link):
    preview_image = models.URLField()
    preview_heading = models.CharField(max_length = 100)
    preview_content = models.CharField(max_length = 100)

When I try to access URL.objects.get(pk=1).likes.all(), I get Cannot resolve keyword '' into field. Choices are:... error.

URL.objects.get(pk=1).tags.all(), URL.objects.get(pk=1).user and URL.objects.filter(likes=auser, pk=1) work fine.

Updates:

The fields likes and dis_likes were added using south through schemamigration
Previously I was using Django 1.6.1, updated to Django 1.6.2, the problem still persists
Truncated the database, synced it to have fresh tables, the problem still persists"	Bug	closed	contrib.auth	1.6	Normal	worksforme			Unreviewed	0	0	0	0	0	0
