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

Jesus gesusjl at gmail.com
Thu Apr 16 07:39:43 PDT 2015


Hi Simone,

I've been following  the discussion about keeping ResourceBase hide. 
I'll stay tuned meantime.

Thanks!!

Jesús

On 04/16/2015 01:48 AM, Simone Dalmasso wrote:
> Hi Jesus, yes it is a small bug that we'll fix soon. Thanks for 
> reporting. Anyway ResourceBase should not be used from the admin and 
> we should remove it from there. It's children are the ones to use 
> (layers, maps, documents and services)
>
> Ciao
>
> 2015-04-15 22:02 GMT+02:00 Jesus <gesusjl at gmail.com 
> <mailto:gesusjl at gmail.com>>:
>
>     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 <http://field.field.name> %} field-{{
>     field.field.name <http://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>
>
>
>
>
>     _______________________________________________
>     geonode-users mailing list
>     geonode-users at lists.osgeo.org <mailto:geonode-users at lists.osgeo.org>
>     http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
>
>
>
>
> -- 
> Simone

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


More information about the geonode-users mailing list