django_builder
django_builder copied to clipboard
ForeignKeys need Class name.
Hi, thank you for this great work. I use it a lot. I would like to request that when a foreignkey relationship is created that the code includes the class Name.
For Example: (See below) location = models.ForeignKey(on_delete=models.CASCADE) should be location = models.ForeignKey(Location, on_delete=models.CASCADE)
class location(models.Model):
# Fields
name = models.CharField(max_length=255)
...
class item(models.Model):
# Fields
name = models.CharField(max_length=255)
...
# Relationship Fields
location = models.ForeignKey(<NEED TO ADD Location HERE>, on_delete=models.CASCADE)
...
Hi Thanks for this, i will take a look.
Also they are lost on the Models.py import / upload.
Ok should be fixed for Models in the app