[Python-modules-team] Bug#822224: Bug#822224: Further changes

Neil Williams codehelp at debian.org
Fri Apr 22 10:40:42 UTC 2016


On Fri, 22 Apr 2016 20:28:28 +1000
Brian May <bam at debian.org> wrote:

> Neil Williams <codehelp at debian.org> writes:
> 
> > i.e. django-tables 1.1.6 reveals a "bug" in django 1.7 so django
> > needs to be updated to 1.8 before django-tables 1.1.6 can be
> > upgraded/installed.  
> 
> Sorry, not sure I understand the need for the Breaks. What happens if
> you upgrade django-tables and then upgrade django?

python-django and python-django-tables2 from jessie work but if either
one is pulled in from jessie-backports without the other, restarting
apache2 causes a HTTP500.

It's a bit of a stretch to call this a bug in django1.7 I know but it's
a (documented) change from django 1.7 to 1.8 which the version of
django-tables in jessie cannot handle.

With this combination in a (otherwise working) VM:

lava-server                   2016.3.post1-5591.7
python-django                 1.7.7-1+deb8u4
python-django-tables2         1.1.6-1~bpo8+1

i.e. upgraded django-tables with django from jessie.

sudo apache2ctl restart

causes a HTTP500

...
  File "/usr/lib/python2.7/dist-packages/django_tables2/tables.py", line 185, in __new__
    extra[field_name] = columns.library.column_for_field(field)
  File "/usr/lib/python2.7/dist-packages/django_tables2/columns/base.py", line 37, in column_for_field
    column = candidate.from_field(field)
  File "/usr/lib/python2.7/dist-packages/django_tables2/columns/base.py", line 256, in from_field
    return cls(verbose_name=field.verbose_name)
AttributeError: 'ManyToManyRel' object has no attribute 'verbose_name'

then upgrade python-django & python-django-common to 1.8 already in
backports, apache2ctl restart again and everything works. 

> Apart from the Breaks header, all other the changes look fine and I
> will look at making these changes to the unstable version.
> -- 
> Brian May <bam at debian.org>


-- 


Neil Williams
=============
http://www.linux.codehelp.co.uk/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20160422/4526a55f/attachment-0001.sig>


More information about the Python-modules-team mailing list