I've been developing a custom module which allows you to store data on multiple sites a company owns, and gas/electric meters installed at that location. When I try and save a new site record it throws the error. Not sure what I've done wrong.
error here pastebin.com/UzSGZmVG
code here pastebin.com/5MNMuBrF (I commented out the required=True to see if that was causing the issue).
view here pastebin.com/H7sSrQat