David Jean Louis  committed b612f71 Merge

merge changes by bromer

  • Participants
  • Parent commits 7620dc4, 27a5652

Comments (0)

Files changed (1)

File admin_tools/menu/

+import urllib
 from django import forms
 from import Bookmark
 class BookmarkForm(forms.ModelForm):
     This form allows the user to edit bookmarks. It doesn't show the user field.
         super(BookmarkForm, self).__init__(*args, **kwargs)
         self.user = user
+    def clean_url(self):
+        url = self.cleaned_data['url']
+        return urllib.unquote(url)
     def save(self, *args, **kwargs):
         bookmark = super(BookmarkForm, self).save(commit=False, *args, **kwargs)
         bookmark.user = self.user