(self, request=None)
Save plugin data.

        Saving the plugin data and moving the file.
Save plugin data.
Save plugin data .
def save_plugin_data(self, request=None):
        """Save plugin data.

        Saving the plugin data and moving the file.
        """
        bookmark = self.cleaned_data.get('bookmark', None)
        if bookmark:
            # Since it's a ``ModelChoiceField``, we can safely given an ID.
            self.cleaned_data['bookmark'] = bookmark.pk

            # Saving the rest of the fields.
            self.cleaned_data['title'] = bookmark.title
            self.cleaned_data['url'] = bookmark.url
            self.cleaned_data['external'] = bookmark.external
            self.cleaned_data['image'] = bookmark.image
def save_plugin_data ( self , request = None ) : bookmark = self . cleaned_data . get ( 'bookmark' , None ) if bookmark : # Since it's a ``ModelChoiceField``, we can safely given an ID. self . cleaned_data [ 'bookmark' ] = bookmark . pk # Saving the rest of the fields. self . cleaned_data [ 'title' ] = bookmark . title self . cleaned_data [ 'url' ] = bookmark . url self . cleaned_data [ 'external' ] = bookmark . external self . cleaned_data [ 'image' ] = bookmark . image