<?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>7513</bug_id>
          
          <creation_ts>2015-03-25 13:19:58 +0000</creation_ts>
          <short_desc>The date picker feature breaks the builds pages</short_desc>
          <delta_ts>2015-04-17 13:36:57 +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>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Belen Barros Pena">belen.barros.pena</reporter>
          <assigned_to name="Alexandru Damian">alexandru.damian</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>bogdanx.a.voiculescu</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>cristina-danielax.agurida</cc>
    
    <cc>jessica.zhang</cc>
          
          <qa_contact name="Cristina Agurida">cristina-danielax.agurida</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>49740</commentid>
    <comment_count>0</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2015-03-25 13:19:58 +0000</bug_when>
    <thetext>The error happens in both the project builds and the all builds pages. This is the traceback:

Environment:


Request Method: GET
Request URL:
http://127.0.0.1:8000/toastergui/builds/?count=10&amp;orderby=completed_on%3A-&amp;
page=1

Django Version: 1.6
Python Version: 2.7.6
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;)


Traceback:
File &quot;/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py&quot;
in get_response
  114.                     response = wrapped_callback(request,
*callback_args, **callback_kwargs)
File &quot;/home/yocto/master/bitbake/lib/toaster/toastergui/views.py&quot; in builds
  1879.             context, pagesize, orderby =
_build_list_helper(request, buildrequests, True)
File &quot;/home/yocto/master/bitbake/lib/toaster/toastergui/views.py&quot; in
_build_list_helper
  2017.         context_date,today_begin,yesterday_begin =
_add_daterange_context(queryset_all, request, {&apos;created&apos;,&apos;updated&apos;})
File &quot;/home/yocto/master/bitbake/lib/toaster/toastergui/views.py&quot; in
_add_daterange_context
  337.        
context_date[&apos;dateMin_&apos;+key]=timezone.localtime(getattr(queryset_key.first(
),key)).strftime(&quot;%d/%m/%Y&quot;)

Exception Type: AttributeError at /toastergui/builds/
Exception Value: &apos;NoneType&apos; object has no attribute &apos;updated&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49741</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2015-03-25 13:40:56 +0000</bug_when>
    <thetext>Patch for review on 

poky-contrib:adamian/20150324_submission</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50113</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2015-04-07 13:23:51 +0000</bug_when>
    <thetext>Merged to master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50385</commentid>
    <comment_count>3</comment_count>
    <who name="Cristina Agurida">cristina-danielax.agurida</who>
    <bug_when>2015-04-17 13:36:01 +0000</bug_when>
    <thetext>Verified on master: 547b189951283e1ea1fabd135d32bcb59124d8c3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>