[traceback] ValueError: invalid literal for int() with base 10: 'None'

VERIFIED FIXED in 2013-01-31

Status

Marketplace
Payments/Refunds
VERIFIED FIXED
5 years ago
5 years ago

People

(Reporter: krupa, Assigned: ngoke)

Tracking

2013-01-31
Points:
---

Details

(URL)

(Reporter)

Description

5 years ago
steps to reproduce:
1. Load https://marketplace-dev.allizom.org/developers/transactions/?app=412019&transaction_type=None&transaction_id=&date_from_month=0&date_from_day=0&date_from_year=0&date_to_month=0&date_to_day=0&date_to_year=0

expected behavior:

traceback details:
Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "amo/decorators.py", line 160, in wrapper
    return f(*args, **kw)
  File "amo/decorators.py", line 152, in wrapper
    return f(*args, **kw)
  File "python2.6/contextlib.py", line 34, in __exit__
    self.gen.throw(type, value, traceback)
  File "amo/models.py", line 39, in skip_cache
    yield
  File "amo/decorators.py", line 152, in wrapper
    return f(*args, **kw)
  File "waffle/decorators.py", line 36, in _wrapped_view
    return view(request, *args, **kwargs)
  File "amo/decorators.py", line 33, in wrapper
    return func(request, *args, **kw)
  File "mkt/developers/views.py", line 805, in transactions
    form, transactions = _get_transactions(request)
  File "mkt/developers/views.py", line 821, in _get_transactions
    transactions = _filter_transactions(transactions, form.cleaned_data)
  File "mkt/developers/views.py", line 834, in _filter_transactions
    qs = qs.filter(**{db_field: data[form_field]})
  File "django/db/models/query.py", line 624, in filter
    return self._filter_or_exclude(False, *args, **kwargs)
  File "django/db/models/query.py", line 642, in _filter_or_exclude
    clone.query.add_q(Q(*args, **kwargs))
  File "django/db/models/sql/query.py", line 1250, in add_q
    can_reuse=used_aliases, force_having=force_having)
  File "django/db/models/sql/query.py", line 1185, in add_filter
    connector)
  File "django/db/models/sql/where.py", line 69, in add
    value = obj.prepare(lookup_type, value)
  File "django/db/models/sql/where.py", line 320, in prepare
    return self.field.get_prep_lookup(lookup_type, value)
  File "django/db/models/fields/__init__.py", line 972, in get_prep_lookup
    return super(IntegerField, self).get_prep_lookup(lookup_type, value)
  File "django/db/models/fields/__init__.py", line 310, in get_prep_lookup
    return self.get_prep_value(value)
  File "django/db/models/fields/__init__.py", line 966, in get_prep_value
    return int(value)
ValueError: invalid literal for int() with base 10: 'None'
Kevin, can you please take a look at this?
Assignee: amckay → ngoke
Target Milestone: --- → 2013-01-31
(Assignee)

Comment 2

5 years ago
On it.
(Assignee)

Comment 3

5 years ago
https://github.com/mozilla/zamboni/commit/c60d27812a9be1554f76f45f099b851efbc1815d
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
(Reporter)

Comment 4

5 years ago
verified fixed at https://marketplace-dev.allizom.org/developers/transactions/?app=414637&transaction_type=1&transaction_id=&date_from_month=0&date_from_day=0&date_from_year=0&date_to_month=0&date_to_day=0&date_to_year=0
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.