On 8/7/06, Antonio Cavedoni <[EMAIL PROTECTED]> wrote: > > On 6 Aug 2006, at 15:10, limodou wrote: > > It seems that _meta.one_to_one_field is not a list or tuple. So for > > field in o._meta.one_to_one_field will be failed. And I think to > > deal with OneToOne relationship should just like deal with ForeignKey. > > Thanks limodou, I merged your changes with the code that's on the > wiki, you can see it at the usual URI: > > http://code.djangoproject.com/wiki/DjangoGraphviz > > Cheers.
I'v tested your code, everything is wonderful, except there is no Helvetica Bold font in my machine, so as I convert the dot to jpg, it'll complain an error. So if you can use a font which can be found everywhere is better. Just a suggestion, and I can modify the dot file myself. It's not a big problem. -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---