'Get this property through an accessor function,
so that we can guarantee that the DB-stored version
matches the hard-coded software version.'

def get_version(self):

    own_device = Device.get_own_device()
    if ((self == own_device) and (self.version != VERSION)):
        self.version = VERSION
        self.save()
    return self.version
