<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7618</bug_id>
          
          <creation_ts>2015-04-16 12:42:05 +0000</creation_ts>
          <short_desc>Django admin interface for toaster not working</short_desc>
          <delta_ts>2015-05-29 11:56:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Toaster</product>
          <component>toaster</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.9 M1</target_milestone>
          
          <blocked>7246</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Mihail Stanciu">stanciux.mihail</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>cristina-danielax.agurida</cc>
    
    <cc>eduard.bartosh</cc>
    
    <cc>jessica.zhang</cc>
          
          <qa_contact name="Cristina Agurida">cristina-danielax.agurida</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50338</commentid>
    <comment_count>0</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2015-04-16 12:42:05 +0000</bug_when>
    <thetext>Tested on master: 02881a8d0b9995f4f3c9904c06ae4b7882958591

Steps to reproduce:
1. Start Toaster in managed mode
2. Log in to the Django admin interface (http://localhost:8000/admin)
3. Click on &quot;Toaster settings&quot; at the bottom of the list

Expected:
Various administration options should become available to you.

Observed:
Page crashes with error. Traceback follows:

Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/admin/orm/toastersetting/

Django Version: 1.6
Python Version: 2.7.8
Installed Applications:
(&apos;django.contrib.auth&apos;,
 &apos;django.contrib.contenttypes&apos;,
 &apos;django.contrib.messages&apos;,
 &apos;django.contrib.sessions&apos;,
 &apos;django.contrib.admin&apos;,
 &apos;django.contrib.staticfiles&apos;,
 &apos;django.contrib.humanize&apos;,
 &apos;orm&apos;,
 &apos;toastermain&apos;,
 &apos;south&apos;,
 &apos;bldcontrol&apos;,
 &apos;bldviewer&apos;,
 &apos;toastergui&apos;)
Installed Middleware:
(&apos;django.middleware.common.CommonMiddleware&apos;,
 &apos;django.contrib.sessions.middleware.SessionMiddleware&apos;,
 &apos;django.middleware.csrf.CsrfViewMiddleware&apos;,
 &apos;django.contrib.auth.middleware.AuthenticationMiddleware&apos;,
 &apos;django.contrib.messages.middleware.MessageMiddleware&apos;)


Template error:
In template /usr/local/lib/python2.7/dist-packages/django/contrib/admin/templates/admin/change_list.html, error at line 91
   not all arguments converted during string formatting
   81 :         {% endif %}


   82 :       {% endblock %}


   83 : 


   84 :       &lt;form id=&quot;changelist-form&quot; action=&quot;&quot; method=&quot;post&quot;{% if cl.formset.is_multipart %} enctype=&quot;multipart/form-data&quot;{% endif %}&gt;{% csrf_token %}


   85 :       {% if cl.formset %}


   86 :         &lt;div&gt;{{ cl.formset.management_form }}&lt;/div&gt;


   87 :       {% endif %}


   88 : 


   89 :       {% block result_list %}


   90 :           {% if action_form and actions_on_top and cl.full_result_count %}{% admin_actions %}{% endif %}


   91 :            {% result_list cl %} 


   92 :           {% if action_form and actions_on_bottom and cl.full_result_count %}{% admin_actions %}{% endif %}


   93 :       {% endblock %}


   94 :       {% block pagination %}{% pagination cl %}{% endblock %}


   95 :       &lt;/form&gt;


   96 :     &lt;/div&gt;


   97 :   &lt;/div&gt;


   98 : {% endblock %}


   99 : 

Traceback:
File &quot;/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py&quot; in get_response
  139.                 response = response.render()
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/response.py&quot; in render
  105.             self.content = self.rendered_content
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/response.py&quot; in rendered_content
  82.         content = template.render(context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/base.py&quot; in render
  140.             return self._render(context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/base.py&quot; in _render
  134.         return self.nodelist.render(context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/base.py&quot; in render
  840.                 bit = self.render_node(node, context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/debug.py&quot; in render_node
  78.             return node.render(context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py&quot; in render
  123.         return compiled_parent._render(context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/base.py&quot; in _render
  134.         return self.nodelist.render(context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/base.py&quot; in render
  840.                 bit = self.render_node(node, context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/debug.py&quot; in render_node
  78.             return node.render(context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py&quot; in render
  123.         return compiled_parent._render(context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/base.py&quot; in _render
  134.         return self.nodelist.render(context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/base.py&quot; in render
  840.                 bit = self.render_node(node, context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/debug.py&quot; in render_node
  78.             return node.render(context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py&quot; in render
  62.             result = block.nodelist.render(context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/base.py&quot; in render
  840.                 bit = self.render_node(node, context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/debug.py&quot; in render_node
  78.             return node.render(context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py&quot; in render
  62.             result = block.nodelist.render(context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/base.py&quot; in render
  840.                 bit = self.render_node(node, context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/debug.py&quot; in render_node
  78.             return node.render(context)
File &quot;/usr/local/lib/python2.7/dist-packages/django/template/base.py&quot; in render
  1196.                     _dict = func(*resolved_args, **resolved_kwargs)
File &quot;/usr/local/lib/python2.7/dist-packages/django/contrib/admin/templatetags/admin_list.py&quot; in result_list
  288.             &apos;results&apos;: list(results(cl))}
File &quot;/usr/local/lib/python2.7/dist-packages/django/contrib/admin/templatetags/admin_list.py&quot; in results
  266.             yield ResultList(None, items_for_result(cl, res, None))
File &quot;/usr/local/lib/python2.7/dist-packages/django/contrib/admin/templatetags/admin_list.py&quot; in __init__
  258.         super(ResultList, self).__init__(*items)
File &quot;/usr/local/lib/python2.7/dist-packages/django/contrib/admin/templatetags/admin_list.py&quot; in items_for_result
  185.             f, attr, value = lookup_field(field_name, result, cl.model_admin)
File &quot;/usr/local/lib/python2.7/dist-packages/django/contrib/admin/util.py&quot; in lookup_field
  258.                 value = attr()
File &quot;/usr/local/lib/python2.7/dist-packages/django/db/models/base.py&quot; in __str__
  430.             return force_text(self).encode(&apos;utf-8&apos;)
File &quot;/usr/local/lib/python2.7/dist-packages/django/utils/encoding.py&quot; in force_text
  100.                 s = s.__unicode__()
File &quot;/home/dave/poky/bitbake/lib/toaster/orm/models.py&quot; in __unicode__
  55.         return &quot;Setting %s = &quot; % (self.name, self.value)

Exception Type: TypeError at /admin/orm/toastersetting/
Exception Value: not all arguments converted during string formatting</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50718</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-05-01 21:59:25 +0000</bug_when>
    <thetext>should be fixed by this https://lists.yoctoproject.org/pipermail/toaster/2015-May/002061.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50954</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-05-13 10:00:25 +0000</bug_when>
    <thetext>Should be fixed by this http://cgit.openembedded.org/bitbake/commit/?id=308b5529d4e183d550221864bfdbefd31cc23705</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51347</commentid>
    <comment_count>3</comment_count>
    <who name="Cristina Agurida">cristina-danielax.agurida</who>
    <bug_when>2015-05-29 11:56:10 +0000</bug_when>
    <thetext>Verified on master: a05663bfa10352fd5af6ca9a9d7b323c1c099f35</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>