Skip to content

Commit

Permalink
Use blacken-docs to follow code convention in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jdufresne committed Sep 25, 2019
1 parent 5cb690f commit b4f21c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ to abide by the `Contributor Code of Conduct
from taggit.managers import TaggableManager
class Food(models.Model):
# ... fields here
Expand All @@ -33,7 +34,7 @@ to abide by the `Contributor Code of Conduct
Then you can use the API like so:

.. code:: python
.. code:: pycon
>>> apple = Food.objects.create(name="apple")
>>> apple.tags.add("red", "green", "delicious")
Expand Down
8 changes: 5 additions & 3 deletions docs/custom_tagging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,11 @@ model named ``"tag"``:
# example Food and Drink.
# Here is where you provide your custom Tag class.
tag = models.ForeignKey(MyCustomTag,
related_name="%(app_label)s_%(class)s_items",
on_delete=models.CASCADE)
tag = models.ForeignKey(
MyCustomTag,
on_delete=models.CASCADE,
related_name="%(app_label)s_%(class)s_items",
)
class Food(models.Model):
Expand Down

0 comments on commit b4f21c3

Please sign in to comment.