Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Cannot resolve keyword 'bimport' into field. Choices are: archive_column, archive_order, article, construct, day, edition, frequency, frequency_text, from_email, html_template, id, is_public, list_name, name, newsletterarticle, newsletterarticles, slug, subject, subject_type, subscription, text_template, time
# Caused by
# this is a many-to-many relationship
for nl in bimport.newsletters.all():
# Here's the trace:
for nl in bimport.newsletters.all():
File "/Library/Python/2.5/site-packages/django/db/models/", line 105, in all
return self.get_query_set()
File "/Library/Python/2.5/site-packages/django/db/models/fields/", line 424, in get_query_set
return superclass.get_query_set(self)._next_is_sticky().filter(**(self.core_filters))
File "/Library/Python/2.5/site-packages/django/db/models/", line 498, in filter
return self._filter_or_exclude(False, *args, **kwargs)
File "/Library/Python/2.5/site-packages/django/db/models/", line 516, in _filter_or_exclude
clone.query.add_q(Q(*args, **kwargs))
File "/Library/Python/2.5/site-packages/django/db/models/sql/", line 1675, in add_q
File "/Library/Python/2.5/site-packages/django/db/models/sql/", line 1569, in add_filter
negate=negate, process_extras=process_extras)
File "/Library/Python/2.5/site-packages/django/db/models/sql/", line 1737, in setup_joins
"Choices are: %s" % (name, ", ".join(names)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment