I have very little knowledge of Python. I just got this code from another team member and tried to import it to EA.
It was successfully imported (as a Python code) but with no relationships on the class diagram created by EA as I indicated earlier
When I told the developer that there are no relationships shown in EA, he exported this ERD from Django-extensions (and it shows relationships)
https://ibb.co/NSV9zYcHe also shared the below code of the ERD (as a .dott file) but I could not import this .dot file to EA
digraph model_graph {
// Dotfile by Django-Extensions graph_models
// Created: 2021-01-08 07:36
// Cli Options: -a
fontname = "Roboto"
fontsize = 8
splines = true
node [
fontname = "Roboto"
fontsize = 8
shape = "plaintext"
]
edge [
fontname = "Roboto"
fontsize = 8
]
// Labels
django_contrib_admin_models_LogEntry [label=<
<TABLE BGCOLOR="white" BORDER="1" CELLBORDER="0" CELLSPACING="0">
<TR><TD COLSPAN="2" CELLPADDING="5" ALIGN="CENTER" BGCOLOR="#1b563f">
<FONT FACE="Roboto" COLOR="white" POINT-SIZE="10"><B>
LogEntry
</B></FONT></TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto"><B>id</B></FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto"><B>AutoField</B></FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT COLOR="#7B7B7B" FACE="Roboto"><B>content_type</B></FONT>
</TD><TD ALIGN="LEFT">
<FONT COLOR="#7B7B7B" FACE="Roboto"><B>ForeignKey (id)</B></FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto"><B>user</B></FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto"><B>ForeignKey (id)</B></FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto">action_flag</FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto">PositiveSmallIntegerField</FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto">action_time</FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto">DateTimeField</FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT COLOR="#7B7B7B" FACE="Roboto">change_message</FONT>
</TD><TD ALIGN="LEFT">
<FONT COLOR="#7B7B7B" FACE="Roboto">TextField</FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT COLOR="#7B7B7B" FACE="Roboto">object_id</FONT>
</TD><TD ALIGN="LEFT">
<FONT COLOR="#7B7B7B" FACE="Roboto">TextField</FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto">object_repr</FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto">CharField</FONT>
</TD></TR>
</TABLE>
>]
django_contrib_auth_models_AbstractUser [label=<
<TABLE BGCOLOR="white" BORDER="1" CELLBORDER="0" CELLSPACING="0">
<TR><TD COLSPAN="2" CELLPADDING="5" ALIGN="CENTER" BGCOLOR="#1b563f">
<FONT FACE="Roboto" COLOR="white" POINT-SIZE="10"><B>
AbstractUser<BR/><<FONT FACE="Roboto"><I>AbstractBaseUser,PermissionsMixin</I></FONT>>
</B></FONT></TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto">date_joined</FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto">DateTimeField</FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT COLOR="#7B7B7B" FACE="Roboto">email</FONT>
</TD><TD ALIGN="LEFT">
<FONT COLOR="#7B7B7B" FACE="Roboto">EmailField</FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT COLOR="#7B7B7B" FACE="Roboto">first_name</FONT>
</TD><TD ALIGN="LEFT">
<FONT COLOR="#7B7B7B" FACE="Roboto">CharField</FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto">is_active</FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto">BooleanField</FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto">is_staff</FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto">BooleanField</FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto"><I>is_superuser</I></FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto"><I>BooleanField</I></FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT COLOR="#7B7B7B" FACE="Roboto"><I>last_login</I></FONT>
</TD><TD ALIGN="LEFT">
<FONT COLOR="#7B7B7B" FACE="Roboto"><I>DateTimeField</I></FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT COLOR="#7B7B7B" FACE="Roboto">last_name</FONT>
</TD><TD ALIGN="LEFT">
<FONT COLOR="#7B7B7B" FACE="Roboto">CharField</FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto"><I>password</I></FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto"><I>CharField</I></FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto">username</FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto">CharField</FONT>
</TD></TR>
</TABLE>
>]
django_contrib_auth_models_Permission [label=<
<TABLE BGCOLOR="white" BORDER="1" CELLBORDER="0" CELLSPACING="0">
<TR><TD COLSPAN="2" CELLPADDING="5" ALIGN="CENTER" BGCOLOR="#1b563f">
<FONT FACE="Roboto" COLOR="white" POINT-SIZE="10"><B>
Permission
</B></FONT></TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto"><B>id</B></FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto"><B>AutoField</B></FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto"><B>content_type</B></FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto"><B>ForeignKey (id)</B></FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto">codename</FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto">CharField</FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto">name</FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto">CharField</FONT>
</TD></TR>
</TABLE>
>]
django_contrib_auth_models_Group [label=<
<TABLE BGCOLOR="white" BORDER="1" CELLBORDER="0" CELLSPACING="0">
<TR><TD COLSPAN="2" CELLPADDING="5" ALIGN="CENTER" BGCOLOR="#1b563f">
<FONT FACE="Roboto" COLOR="white" POINT-SIZE="10"><B>
Group
</B></FONT></TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto"><B>id</B></FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto"><B>AutoField</B></FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto">name</FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto">CharField</FONT>
</TD></TR>
</TABLE>
>]
django_contrib_auth_models_User [label=<
<TABLE BGCOLOR="white" BORDER="1" CELLBORDER="0" CELLSPACING="0">
<TR><TD COLSPAN="2" CELLPADDING="5" ALIGN="CENTER" BGCOLOR="#1b563f">
<FONT FACE="Roboto" COLOR="white" POINT-SIZE="10"><B>
User<BR/><<FONT FACE="Roboto"><I>AbstractUser</I></FONT>>
</B></FONT></TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto"><B>id</B></FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto"><B>AutoField</B></FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto"><I>date_joined</I></FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto"><I>DateTimeField</I></FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT COLOR="#7B7B7B" FACE="Roboto"><I>email</I></FONT>
</TD><TD ALIGN="LEFT">
<FONT COLOR="#7B7B7B" FACE="Roboto"><I>EmailField</I></FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT COLOR="#7B7B7B" FACE="Roboto"><I>first_name</I></FONT>
</TD><TD ALIGN="LEFT">
<FONT COLOR="#7B7B7B" FACE="Roboto"><I>CharField</I></FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto"><I>is_active</I></FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto"><I>BooleanField</I></FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto"><I>is_staff</I></FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto"><I>BooleanField</I></FONT>
</TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0">
<FONT FACE="Roboto"><I>is_superuser</I></FONT>
</TD><TD ALIGN="LEFT">
<FONT FACE="Roboto"><I>BooleanField</I></FONT>
</TD><...