You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In recadm.add's view (views.py), I am chopping up some data to reduce network traffic before sending it to the template rendering. In the index view, the piecemeal data is put together into mydata without any issues, utilizing a list of dictionaries. When I try to do the same thing, with the exact same methodology, below, in the add view, I'm getting the following error:
File "/home/sprite/src/py/django/lasttime/recadm/views.py", line 36, in add
mydata.add({'name': sub.common_name, 'id': sub.id, })
AttributeError: 'list' object has no attribute 'add'
So yeah, I've not slept in too long, so I'm just going to halt here before I start making things really ugly. No doubt I'm missing something horribly obvious.
The text was updated successfully, but these errors were encountered:
In recadm.add's view (
views.py
), I am chopping up some data to reduce network traffic before sending it to the template rendering. In the index view, the piecemeal data is put together intomydata
without any issues, utilizing a list of dictionaries. When I try to do the same thing, with the exact same methodology, below, in the add view, I'm getting the following error:So yeah, I've not slept in too long, so I'm just going to halt here before I start making things really ugly. No doubt I'm missing something horribly obvious.
The text was updated successfully, but these errors were encountered: