I am really stuck here. I went back and edited some models that I made a while ago and now I can't get anything to migrate without getting:
django.db.utils.IntegrityError: NOT NULL constraint failed: new__accounts_instrument.room_id
The model that seems to be causing problems:
acounts/models.py
class Instrument(models.Model):
LEVEL = (
('HS', 'HS'),
('MS', 'MS'),
)
event = models.ForeignKey(Event, blank=False, null=True, on_delete=models.PROTECT)
name = models.CharField(max_length=200, blank=False, null=True)
abbreviation = models.CharField(max_length=10, blank=False, null=True)
level = models.CharField(max_length=200, blank=False, null=True, choices=LEVEL)
room = models.ForeignKey(AuditionRoom, default=None, on_delete=models.PROTECT)
I've tried deleting the migration history but that throws other codes so I "undo" it. I've tried dropping the instrument table but that didn't seem to matter.
I'm very grateful for any pointers as I am pretty frustrated at the moment. Please let me know if you need more code snippets, Thanks.