docs: def register(self, key, dbtype):
          '''Register a DB type to add constraint on a given extra key'''
          if not issubclass(dbtype, (BaseField, EmbeddedDocument)):
              msg = 'ExtrasField can only register MongoEngine fields'
              raise TypeError(msg)
          self.registered[key] = dbtype