-
-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is in response to a question we got in the issue tracker.
- Loading branch information
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |