[Python-modules-team] Bug#863267: Bug#863267: Miscalculates MigrationHistory dependencies between multiple django apps - regression from 1.8

Senthil Kumaran S stylesen at gmail.com
Tue May 30 06:37:30 UTC 2017


On Monday 29 May 2017 08:54 PM, Raphael Hertzog wrote:
> On Mon, 29 May 2017, Raphael Hertzog wrote:
>> Updated patches attached, I missed to update some tests to account
>> for the move of the detect_soft_applied() method.
> 
> Third set of patches, this time the package builds fine at least.
> Which means you can just test this package and let me know if it fixes
> your issue:
> $ dget https://people.debian.org/~hertzog/packages/python-django_1.10.7-2~test1_amd64.changes

I tested the patch with lava-server, which ended up with a traceback as
seen here - http://paste.debian.net/952276/

The traceback message is as follows:

<snip>
Traceback (most recent call last):
  File "/usr/bin/lava-server", line 78, in <module>
    main()
  File "/usr/bin/lava-server", line 74, in main
    execute_from_command_line(django_options)
  File
"/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 367, in execute_from_command_line
    utility.execute()
  File
"/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 359, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/usr/lib/python2.7/dist-packages/django/core/management/base.py", line
294, in run_from_argv
    self.execute(*args, **cmd_options)
  File
"/usr/lib/python2.7/dist-packages/django/core/management/base.py", line
345, in execute
    output = self.handle(*args, **options)
  File
"/usr/lib/python2.7/dist-packages/django/core/management/commands/migrate.py",
line 87, in handle
    connection, fake_initial=options['fake_initial'])
  File
"/usr/lib/python2.7/dist-packages/django/db/migrations/loader.py", line
291, in check_consistent_history
    if fake_initial and self.detect_soft_applied(None, parent):
  File
"/usr/lib/python2.7/dist-packages/django/db/migrations/loader.py", line
343, in detect_soft_applied
    if migration.initial is None:
AttributeError: 'Node' object has no attribute 'initial'
</snip>

Thank You.
-- 
Senthil Kumaran
http://www.stylesen.org/
http://www.sasenthilkumaran.com/

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


More information about the Python-modules-team mailing list