Skip to content

Commit

Permalink
Add question to FAQ
Browse files Browse the repository at this point in the history
 This is in response to a question we got in the issue tracker.
  • Loading branch information
rtpg authored and Asif Saif Uddin committed Nov 10, 2021
1 parent d4aab73 commit 559bf84
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/faq.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
Frequently Asked Questions
==========================

- How can I get all my tags?

- How can I use this with factory_boy?
If you are using just an out-of-the-box setup, your tags are storred in the `Tag` model (found in `taggit.models`). If this is a custom model (for example you have your own models derived from `ItemBase`), then you'll need to query that one instead.

So if you are using the standard setup, ``Tag.objects.all()`` will give you the tags.

- How can I use this with factory_boy?

Since these are all built off of many-to-many relationships, you can check out `factory_boy's documentation on this topic <https://factoryboy.readthedocs.io/en/stable/recipes.html#simple-many-to-many-relationship>`_ and get some ideas on how to deal with tags.

0 comments on commit 559bf84

Please sign in to comment.