If we have the following model setup:
news/models.py:
class Image(modes.Model):
...
gallery/models.py:
class Image(models.Model):
...
and use ManyToMany, Foreign Keys etc the graph that gets produced will
think that that both image models are the same in effect hidding one of
them and producing incorrect relations.
Attached is a quick'n'dirty patch that solved the issue for me. All the
patch does is use to prefix the nodes with __module__ and update the
relations in the same way so that dot can distinguish the models with the
same names.
Original issue reported on code.google.com by tadam...@gmail.com on 10 Jun 2008 at 12:21
Original issue reported on code.google.com by
tadam...@gmail.com
on 10 Jun 2008 at 12:21Attachments: