Skip to content

Instantly share code, notes, and snippets.

@callen23dc
Created March 19, 2010 14:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save callen23dc/337546 to your computer and use it in GitHub Desktop.
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/manager.py", line 105, in all
return self.get_query_set()
File "/Library/Python/2.5/site-packages/django/db/models/fields/related.py", 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/query.py", line 498, in filter
return self._filter_or_exclude(False, *args, **kwargs)
File "/Library/Python/2.5/site-packages/django/db/models/query.py", line 516, in _filter_or_exclude
clone.query.add_q(Q(*args, **kwargs))
File "/Library/Python/2.5/site-packages/django/db/models/sql/query.py", line 1675, in add_q
can_reuse=used_aliases)
File "/Library/Python/2.5/site-packages/django/db/models/sql/query.py", line 1569, in add_filter
negate=negate, process_extras=process_extras)
File "/Library/Python/2.5/site-packages/django/db/models/sql/query.py", 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