Closed chrisvans closed 11 years ago
I have no idea why this is happening....
Hopefully Brian is TA-ing tomorrow, I'll ask him. He's the django guy!
Actually, manually fixed it by allowing each of the fields to be blank. Added blank=True option in companyLocation. Really unsure as to why this either wasn't already a bug, or why it changed in the first place. The only change that has ever happened to the admin.py file was the removal of 'User' in the admin.site.register call ( Since User is now django's, it's already registered ). Currently this won't be an issue since we manually add in companies through the admin, but since we will likely want to add in functionality later for baristas to manually add in their own companies, we'll want to have the field be required. Won't be an issue for the duration of this project however. I haven't been able to find a way to set admin fields to specifically be allowed to be blank, and other fields that we use the companyLocation class for to be required.
For some reason, the admin page is requiring that all 3 default fields be filled when registering a new company. This is new, but I'm not seeing where the change was. Perhaps Anthony will be able to easily see since he set up the initial Admin.