Skip to content

Commit cb67270

Browse files
voberoijpic
authored andcommitted
Update taggit.rst docs.
For `taggit` the create option is broken, and it is unnecessary. One of the drop down options includes the new tag. So if you've typed `funny` and `funny` does not exist you'll have: ``` funny Create 'funny' ``` Picking `funny` works as intended -- it creates a new tag properly. Picking `Create 'funny'` creates two tags and labels them wonkily. This change removes the create option entirely from the docs so this works out of the box for end-users.
1 parent 2e51796 commit cb67270

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/taggit.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ Select2 and a QuerySet of Tag objects:
4848
4949
return qs
5050
51+
def get_create_option(self, context, q):
52+
return []
53+
5154
Don't forget to :ref:`register-view`.
5255

5356
.. note:: For more complex filtering, refer to official documentation for

0 commit comments

Comments
 (0)