django_builder icon indicating copy to clipboard operation
django_builder copied to clipboard

Upload Models.py

Open jwmeidinger opened this issue 6 years ago • 1 comments

When uploading the models.py the file is accepted and something happens, by the upload button but soon goes back to what it was before. Maybe i'm just using it wrong but does the file need to be blank? below is the file that i tried uploading. I also have some other questions on your program if you don't mind. I just followed you on twitter @J0rdanMeidinger

models.txt

jwmeidinger avatar Oct 11 '19 04:10 jwmeidinger

Hi @jwmeidinger

Looks like a bug, the uploads of models.py quite strict.

Currently it looks for models in the file like this:

class User(models.Model):

This needs to be a bit more forgiving and try to find models that inherit from other models.

mmcardle avatar Oct 11 '19 12:10 mmcardle