mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
Removing docs for piece I deleted previously
This commit is contained in:
parent
8a5c137eb6
commit
53372a60a9
1 changed files with 0 additions and 15 deletions
|
|
@ -24,18 +24,3 @@ If you want more than one field on a model you have to have some extra arguments
|
|||
The ``extra_args`` allows you to specify the related_name of one of the fields so it doesn't clash.
|
||||
|
||||
|
||||
Extra fields with Many-to-Many Categories
|
||||
=========================================
|
||||
|
||||
Occasionally you may want to add one or more fields to the categories you relate to a given model. For example, you may want an easy way to select one of the categories to be "primary." This requires a bit more work.
|
||||
|
||||
1. Create the intermediary class::
|
||||
|
||||
from categories.models import CategoryIntermediary
|
||||
|
||||
# We're assuming that there is a ``Blog`` model previously defined
|
||||
# or imported
|
||||
class BlogCategories(CategoryIntermediary):
|
||||
blog = models.ForeignKey(Blog)
|
||||
|
||||
categories.register_m2m(Blog, extra_args={'through':'BlogCategories'})
|
||||
Loading…
Reference in a new issue