This is a very bizarre issue....
I am trying to add new fields to a model:
- It doesn't matter what name I give to this field in this particular app but I get an error as follows:
django.db.utils.ProgrammingError: column events_eventsetting.electronic_signature_disclosure_and_consent does not exist(insert ANY name you want) - I have checked all migration files repeatedly for the existence of this field name...nada.
- I have checked the DB table through PGAdmin...nada
- I have checked for all references to this field in all files in the project through the IDE...nada.
Here's an example of the code I'm adding:
YES_NO_CHOICES = [
('No', 'No'),
('Yes', 'Yes'),
]
# SNIP
class EventSetting(models.Model):
liability_active = models.CharField(
max_length=5,
choices=YES_NO_CHOICES,
default='No',
)
# SNIP
I have added fields to this model before...a number of times. All migration files are accounted for. All file numbers are sequential. The IDE shows them all as uploaded to the repo.
This is an odd one. I am using this particular table as a global settings table so there is only one row in the table. I have checked, through the IDE, for references to this table (EventSettings) and utilize constants.
Thoughts?