[GeoNode-users] error on admin interface "Select resource base to change" geonode version 2.4.dev20150415201451 (master)

Jesus gesusjl at gmail.com
Wed Apr 15 13:02:27 PDT 2015


Hi all,

Pastebin is down (see below)..  I'm having a TypeError when clicking 
over a ID link in admin interface on section Resource bases

Any suggestion? Could be a bug? Something related with the template 
rendering.

Thank you

Jesús


  TypeError at /admin/base/resourcebase/1/

int() argument must be a string or a number, not 'QuerySet'

Request Method: 	GET
Request URL: 	http://192.168.50.4/admin/base/resourcebase/1/
Django Version: 	1.6.10
Exception Type: 	TypeError
Exception Value: 	

int() argument must be a string or a number, not 'QuerySet'

Exception Location: 
/home/vagrant/.venvs/geonode/lib/python2.7/site-packages/django/db/models/fields/__init__.py 
in get_prep_value, line 613
Python Executable: 	/usr/bin/python
Python Version: 	2.7.3
Python Path: 	

['/home/vagrant/geonode',
  '/home/vagrant/cdfgeonode',
  '/home/vagrant/.venvs/geonode/lib/python2.7/site-packages',
  '/usr/lib/python2.7',
  '/usr/lib/python2.7/plat-linux2',
  '/usr/lib/python2.7/lib-tk',
  '/usr/lib/python2.7/lib-old',
  '/usr/lib/python2.7/lib-dynload',
  '/usr/local/lib/python2.7/dist-packages',
  '/usr/lib/python2.7/dist-packages',
  '/usr/lib/python2.7/dist-packages/PIL',
  '/var/www']

Server time: 	Wed, 15 Apr 2015 14:53:34 -0500


    Error during template rendering

In template 
|/home/vagrant/.venvs/geonode/lib/python2.7/site-packages/django/contrib/admin/templates/admin/includes/fieldset.html|, 
error at line *19*


      int() argument must be a string or a number, not 'QuerySet'

9 	{% for field in line %}
10 	<div{% if not line.fields|length_is:'1' %} class="field-box{% if 
field.field.name %} field-{{ field.field.name }}{% endif %}{% if not 
field.is_readonly and field.errors %} errors{% endif %}"{% elif 
field.is_checkbox %} class="checkbox-row"{% endif %}>
11 	{% if not line.fields|length_is:'1' and not field.is_readonly %}{{ 
field.errors }}{% endif %}
12 	{% if field.is_checkbox %}
13 	{{ field.field }}{{ field.label_tag }}
14 	{% else %}
15 	{{ field.label_tag }}
16 	{% if field.is_readonly %}
17 	<p>{{ field.contents|linebreaksbr }}</p>
18 	{% else %}
19 	{{ field.field }}
20 	{% endif %}
21 	{% endif %}
22 	{% if field.field.help_text %}
23 	<p class="help">{{ field.field.help_text|safe }}</p>
24 	{% endif %}
25 	</div>
26 	{% endfor %}
27 	</div>
28 	{% endfor %}
29 	</fieldset>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20150415/d3f2be51/attachment.html>


More information about the geonode-users mailing list