We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 12a275e + b9ae56f commit 8739710Copy full SHA for 8739710
docs/extending_cms/custom_plugins.rst
@@ -268,6 +268,14 @@ clause.
268
field, as it is declared as a property of :class:`cms.models.pluginmodel.CMSPlugin`,
269
and your plugin will not work as intended in the administration without
270
further work.
271
+
272
+.. warning::
273
274
+ If you are using Python 2.x and overriding the ``__unicode__`` method of the
275
+ model file, make sure to return its results as UTF8-string. Otherwise
276
+ saving an instance of your plugin might fail with the frontend editor showing
277
+ an <Empty> plugin instance. To return in unicode use a return statement like
278
+ ``return u'{}'.format(self.guest_name)``.
279
280
.. _handling-relations:
281
0 commit comments