From 53372a60a94eddc12d74bd48ef44953920ce02c3 Mon Sep 17 00:00:00 2001 From: Corey Oordt Date: Tue, 6 Apr 2010 12:48:23 -0400 Subject: [PATCH] Removing docs for piece I deleted previously --- docs/registering_models.rst | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/docs/registering_models.rst b/docs/registering_models.rst index aa9fda6..27bdbfa 100644 --- a/docs/registering_models.rst +++ b/docs/registering_models.rst @@ -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'}) \ No newline at end of file