Changes between Initial Version and Version 1 of Ticket #22535


Ignore:
Timestamp:
Apr 28, 2014, 6:44:57 PM (11 years ago)
Author:
Tim Graham
Comment:

Added some formatting (please use preview). I think a minimal set of models to reproduce the issue would be more helpful than the information you have provided so far.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22535 – Description

    initial v1  
     1{{{
    12Traceback (most recent call last):
    23  File "local_manage.py", line 22, in <module>
    34    execute_from_command_line(sys.argv)
    4   File "D:\projekty\myinit\env\lib\site-packages\django\core\management\__init__
    5 .py", line 427, in execute_from_command_line
     5  File "D:\projekty\myinit\env\lib\site-packages\django\core\management\__init__.py", line 427, in execute_from_command_line
    66    utility.execute()
    7   File "D:\projekty\myinit\env\lib\site-packages\django\core\management\__init__
    8 .py", line 419, in execute
     7  File "D:\projekty\myinit\env\lib\site-packages\django\core\management\__init__.py", line 419, in execute
    98    self.fetch_command(subcommand).run_from_argv(self.argv)
    10   File "D:\projekty\myinit\env\lib\site-packages\django\core\management\base.py"
    11 , line 288, in run_from_argv
     9  File "D:\projekty\myinit\env\lib\site-packages\django\core\management\base.py", line 288, in run_from_argv
    1210    self.execute(*args, **options.__dict__)
    13   File "D:\projekty\myinit\env\lib\site-packages\django\core\management\base.py"
    14 , line 337, in execute
     11  File "D:\projekty\myinit\env\lib\site-packages\django\core\management\base.py", line 337, in execute
    1512    output = self.handle(*args, **options)
    16   File "D:\projekty\myinit\env\lib\site-packages\django\core\management\commands
    17 \makemigrations.py", line 99, in handle
    18     changes = autodetector.changes(graph=loader.graph, trim_to_apps=app_labels o
    19 r None)
    20   File "D:\projekty\myinit\env\lib\site-packages\django\db\migrations\autodetect
    21 or.py", line 33, in changes
     13  File "D:\projekty\myinit\env\lib\site-packages\django\core\management\commands\makemigrations.py", line 99, in handle
     14    changes = autodetector.changes(graph=loader.graph, trim_to_apps=app_labels or None)
     15  File "D:\projekty\myinit\env\lib\site-packages\django\db\migrations\autodetector.py", line 33, in changes
    2216    changes = self._detect_changes()
    23   File "D:\projekty\myinit\env\lib\site-packages\django\db\migrations\autodetect
    24 or.py", line 50, in _detect_changes
     17  File "D:\projekty\myinit\env\lib\site-packages\django\db\migrations\autodetector.py", line 50, in _detect_changes
    2518    old_apps = self.from_state.render()
    26   File "D:\projekty\myinit\env\lib\site-packages\django\db\migrations\state.py",
    27  line 63, in render
     19  File "D:\projekty\myinit\env\lib\site-packages\django\db\migrations\state.py", line 63, in render
    2820    model=dangling_lookup[0]))
    2921
    3022
    31 ValueError: Lookup failed for model referenced by field accounts.User.groups: au
    32 th.Group
    33 
     23ValueError: Lookup failed for model referenced by field accounts.User.groups: auth.Group
     24}}}
    3425
    3526
    3627Printed self.apps._pending_lookups
    37 
    38 {('auth', 'Group'): [(<class '__fake__.User'>, <django.db.models.fields.related.
    39 ManyToManyField: groups>, <function resolve_related_class at 0x039247F0>), (<cla
    40 ss '__fake__.User'>, <django.db.models.fields.related.ManyToManyField: groups>,
    41 <function set_managed at 0x03924830>), (<class '__fake__.User_groups'>, <django.
    42 db.models.fields.related.ForeignKey: group>, <function resolve_related_class at
    43 0x03924630>)], ('auth', 'Permission'): [(<class '__fake__.User'>, <django.db.mod
    44 els.fields.related.ManyToManyField: user_permissions>, <function resolve_related
    45 _class at 0x03924530>), (<class '__fake__.User'>, <django.db.models.fields.relat
    46 ed.ManyToManyField: user_permissions>, <function set_managed at 0x03924570>), (<
    47 class '__fake__.User_user_permissions'>, <django.db.models.fields.related.Foreig
    48 nKey: permission>, <function resolve_related_class at 0x039249B0>)]}
    49 
     28{{{
     29{('auth', 'Group'): [(
     30<class '__fake__.User'>,
     31<django.db.models.fields.related.ManyToManyField: groups>,
     32<function resolve_related_class at 0x039247F0>),
     33(<class '__fake__.User'>,
     34<django.db.models.fields.related.ManyToManyField: groups>,
     35<function set_managed at 0x03924830>), (<class '__fake__.User_groups'>,
     36<django.db.models.fields.related.ForeignKey: group>,
     37<function resolve_related_class at0x03924630>)],
     38('auth', 'Permission'): [(<class '__fake__.User'>,
     39<django.db.models.fields.related.ManyToManyField: user_permissions>,
     40<function resolve_related_class at 0x03924530>),
     41(<class '__fake__.User'>,
     42<django.db.models.fields.related.ManyToManyField: user_permissions>,
     43<function set_managed at 0x03924570>),
     44(<class '__fake__.User_user_permissions'>,
     45<django.db.models.fields.related.ForeignKey: permission>,
     46<function resolve_related_class at 0x039249B0>)]}
     47}}}
    5048
    5149Printed dangling dangling_lookup
    52 (('auth', 'Group'), [(<class '__fake__.User'>, <django.db.models.fields.related.
    53 ManyToManyField: groups>, <function resolve_related_class at 0x039247F0>), (<cla
    54 ss '__fake__.User'>, <django.db.models.fields.related.ManyToManyField: groups>,
    55 <function set_managed at 0x03924830>), (<class '__fake__.User_groups'>, <django.
    56 db.models.fields.related.ForeignKey: group>, <function resolve_related_class at
    57 0x03924630>)])
    58 
     50{{{
     51(('auth', 'Group'), [(<class '__fake__.User'>,
     52<django.db.models.fields.related.ManyToManyField: groups>,
     53<function resolve_related_class at 0x039247F0>),
     54(<class '__fake__.User'>,
     55<django.db.models.fields.related.ManyToManyField: groups>,
     56<function set_managed at 0x03924830>),
     57(<class '__fake__.User_groups'>,
     58<django.db.models.fields.related.ForeignKey: group>,
     59<function resolve_related_class at 0x03924630>)])
     60}}}
Back to Top