Re: no migrations to apply after deleting a field in models

2019-05-08 Thread Nelson Varela
Don't delete the 0001_initial file! That is your first state. Just delete the field from you model and do makemigrations again.. You wil get a 0002_ file which deletes the field. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe f

no migrations to apply after deleting a field in models

2019-05-08 Thread amirreza taherkhani
I have this models: class Genre(models.Model): genre = models.CharField(max_length=100) def __str__(self): return self.genre class Book(models.Model): book_name = models.CharField(max_length=150) summary = models.TextField(max_length=1000, null=True,blank=Tru