Commits

Germano Gabbianelli  committed 789daf2

Fixed little bug in AutocompleteView.register.

  • Participants
  • Parent commits 50ac79d

Comments (0)

Files changed (1)

File autocomplete/views.py

     def register(self, id, settings_class=AutocompleteSettings, **options):
         id = getattr(id, 'field', id)
         if id in self.settings:
-            id = self.settings.path.replace('/', '.')
+            id = self.settings[id].path.replace('/', '.')
             raise AlreadyRegistered('%r is already registered' % id)
 
         self.settings[id] = settings = settings_class(id, self.name, **options)