{ "info": { "author": "Bay Citizen & Texas Tribune", "author_email": "dev@armstrongcms.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "armstrong.apps.related_content\n==============================\nProvides mechanism for relating content to other models\n\nYou can use ``armstrong.apps.related_content`` to link two separate models\ntogether through a ``GenericForeignKey`` for the ``source`` and the\n``destination``. You can further organize the relationship with\n``RelatedType`` (think: \"articles\", \"images\", \"external_links\", and so on) and\nall relationships are ordered.\n\n\nUsage\n-----\nYou do *not* have to change your models to utilize related content---it exists\noutside of your model. There are two fields that you can add that give you\neasy access to your related content:\n\n* ``armstrong.apps.related_content.fields.RelatedObjectsField``\n* ``armstrong.apps.related_content.fields.ReverseRelatedObjectsField``\n\nThe first let's you access objects where your model is the ``source``, the\nlatter lets you access objects where your model is the ``destination``. Note\nthat these return the *actual* models that are related, not the\n``RelatedContent`` model. If you need access to the raw ``RelatedContent``\nmodel directly from your model, see\n``armstrong.apps.related_content.fields.RelatedContentField``.\n\nYou can also use the ``RelatedContentInline`` for exposing an admin interface\nto your related content inside Django's admin.\n\n\nAccessing Related Content\n\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\nYou can access fields through the ``RelatedObjectsField`` or\n``ReverseRelatedObjectsField`` by calling ``all()`` or\n``by_type(\"some_type\")``. These return QuerySet-like objects, but since they\nare generic relationships, they're not quite QuerySets.\n\nInside templates, you can access related content by type using the dot-syntax.\nFor example, you could load the first related content of a type ``\"articles\"``\nwith this syntax:\n\n::\n\n {{ my_article.related.articles.0 }}\n\n\nInstallation & Configuration\n----------------------------\nYou can install the latest release of ``armstrong.apps.related_content`` using\n`pip`_:\n\n::\n\n pip install armstrong.apps.related_content\n\nMake sure to add ``armstrong.apps.related_content`` to your ``INSTALLED_APPS``.\nYou can add this however you like. This works as a copy-and-paste solution:\n\n::\n\n\tINSTALLED_APPS += [\"armstrong.apps.related_content\", ]\n\nOnce installed, you have to run either ``syncdb``, or ``migrate`` if you are\nusing `South`_.\n\n.. _pip: http://www.pip-installer.org/\n.. _South: http://south.aeracode.org/\n\n\nBackwards Incompatible Changes\n------------------------------\n\n*Version 2.0*\n * ``RelatedObjectsField`` no longer extends\n ``genericm2m.models.RelatedObjectsDescriptor``.\n * All fields have been been moved into the ``fields`` module now.\n\n\nContributing\n------------\n\n* Create something awesome -- make the code better, add some functionality,\n whatever (this is the hardest part).\n* `Fork it`_\n* Create a topic branch to house your changes\n* Get all of your commits in the new topic branch\n* Submit a `pull request`_\n\n.. _pull request: http://help.github.com/pull-requests/\n.. _Fork it: http://help.github.com/forking/\n\n\nState of Project\n----------------\nArmstrong is an open-source news platform that is freely available to any\norganization. It is the result of a collaboration between the `Texas Tribune`_\nand `Bay Citizen`_, and a grant from the `John S. and James L. Knight\nFoundation`_.\n\nTo follow development, be sure to join the `Google Group`_.\n\n``armstrong.apps.related_content`` is part of the `Armstrong`_ project. You're\nprobably looking for that.\n\n.. _Texas Tribune: http://www.texastribune.org/\n.. _Bay Citizen: http://www.baycitizen.org/\n.. _John S. and James L. Knight Foundation: http://www.knightfoundation.org/\n.. _Google Group: http://groups.google.com/group/armstrongcms\n.. _Armstrong: http://www.armstrongcms.org/\n\n\nLicense\n-------\nCopyright 2011-2012 Bay Citizen and Texas Tribune\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/armstrong/armstrong.apps.related_content/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "armstrong.apps.related_content", "package_url": "https://pypi.org/project/armstrong.apps.related_content/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/armstrong.apps.related_content/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/armstrong/armstrong.apps.related_content/" }, "release_url": "https://pypi.org/project/armstrong.apps.related_content/2.0.4/", "requires_dist": null, "requires_python": null, "summary": "Provides mechanism for relating content to other models", "version": "2.0.4" }, "last_serial": 828659, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "70012603c6bf3878e9a64d3d88dba935", "sha256": "ce2ac7e159b23f2b0a11054d2da01774819c7f205506ceb4c3911d9ea3582360" }, "downloads": -1, "filename": "armstrong.apps.related_content-0.1.0.tar.gz", "has_sig": false, "md5_digest": "70012603c6bf3878e9a64d3d88dba935", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3645, "upload_time": "2011-08-22T22:06:40", "url": "https://files.pythonhosted.org/packages/e4/f9/c20d41ee4124377feb72bb1a79e05096581b95f9f8171c67cd3255cb2486/armstrong.apps.related_content-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "c3bdfa67ab4d5923128d3b516881e5e6", "sha256": "e0d531fec57743278ca94647b950fe92b868088b2a786ca1a3378f0b55145ee6" }, "downloads": -1, "filename": "armstrong.apps.related_content-0.1.1.tar.gz", "has_sig": false, "md5_digest": "c3bdfa67ab4d5923128d3b516881e5e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4758, "upload_time": "2011-08-22T22:55:48", "url": "https://files.pythonhosted.org/packages/6f/2d/99edc00222bdb57f3557b17cf994b9d6b08252ff9d8c5a1dff7b5a123704/armstrong.apps.related_content-0.1.1.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "ae088191367ec8e9c648dbd2faa9f94d", "sha256": "5d3bbae4d17286df25aa3e228b508d8adc2ea1e2b47b8809b73bc17b9afa183b" }, "downloads": -1, "filename": "armstrong.apps.related_content-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ae088191367ec8e9c648dbd2faa9f94d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6412, "upload_time": "2011-09-30T23:05:24", "url": "https://files.pythonhosted.org/packages/76/ef/0d7bfd685c048c42e63fcb447add19f641a524483431ccf1529ee852993d/armstrong.apps.related_content-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "d56c8d5bc9c9a68b1d94e529c138f043", "sha256": "01b8f19415c17d449045130c433a644e81c3d45acc20f0c8a7640945c737864f" }, "downloads": -1, "filename": "armstrong.apps.related_content-1.0.1.tar.gz", "has_sig": false, "md5_digest": "d56c8d5bc9c9a68b1d94e529c138f043", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6521, "upload_time": "2011-10-22T00:54:52", "url": "https://files.pythonhosted.org/packages/e9/9f/373260a014dfde00ccaf990dcceaf2b5110a62a03e32d759a65cfab52c06/armstrong.apps.related_content-1.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "eb6c5b36c3d3f55485073d9a574f7a76", "sha256": "7e08fe068bcee14c0c323ee45d0cc4b16a3bcf639245cd15068796355281e457" }, "downloads": -1, "filename": "armstrong.apps.related_content-1.1.0.tar.gz", "has_sig": false, "md5_digest": "eb6c5b36c3d3f55485073d9a574f7a76", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7794, "upload_time": "2011-12-13T17:42:26", "url": "https://files.pythonhosted.org/packages/6e/8e/1971ae182dc7a434e79c110874110d8f43d154e3c99ff5ac60aeef7bbf97/armstrong.apps.related_content-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "95bf4f5c1d0687e595d77f53e7b1535a", "sha256": "a866bfc4604ef45b19f03861e2a2df98b265034cce81b571597a5b13ded8df09" }, "downloads": -1, "filename": "armstrong.apps.related_content-1.1.1.tar.gz", "has_sig": false, "md5_digest": "95bf4f5c1d0687e595d77f53e7b1535a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7809, "upload_time": "2011-12-15T18:19:54", "url": "https://files.pythonhosted.org/packages/57/ef/37499c619a82380a2d18fb17f17463728974554ffc4061495b9fc228cfe1/armstrong.apps.related_content-1.1.1.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "9a9bd85154a01d2f1c51b8b3589decc5", "sha256": "4fbae6ee0ec4c3587958f8c3081e7fa52caefca905ddfdf18286467e4138b4ad" }, "downloads": -1, "filename": "armstrong.apps.related_content-1.2.0.tar.gz", "has_sig": false, "md5_digest": "9a9bd85154a01d2f1c51b8b3589decc5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8772, "upload_time": "2011-12-20T00:26:16", "url": "https://files.pythonhosted.org/packages/aa/9a/d3a003a1a670acc1f9259830d1b92a2f050734bc6b69f2856668e9d440c3/armstrong.apps.related_content-1.2.0.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "f80fe548b74df252e22f426386acec04", "sha256": "f2aff7805237c207808b4d0912b600487bd623de555ef446cfe7af6150c5d4a9" }, "downloads": -1, "filename": "armstrong.apps.related_content-2.0.0.tar.gz", "has_sig": false, "md5_digest": "f80fe548b74df252e22f426386acec04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10260, "upload_time": "2012-03-27T20:23:11", "url": "https://files.pythonhosted.org/packages/0c/81/580b18959bbe4941ccece6c48d10df250b79cfbdcfceea95f2eee1bcf395/armstrong.apps.related_content-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "cf6bf0ff26309cd4e5eb1075384d76f8", "sha256": "7da08d3a69e5b190849651bbb96f19a42f5fab9c1cb7ad85d003a88a0c6f3f94" }, "downloads": -1, "filename": "armstrong.apps.related_content-2.0.1.tar.gz", "has_sig": false, "md5_digest": "cf6bf0ff26309cd4e5eb1075384d76f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10334, "upload_time": "2012-03-30T00:33:03", "url": "https://files.pythonhosted.org/packages/3c/7d/63bdabe810d3e5e7368063caa8c175264f6284075b2596404a8c3f73f125/armstrong.apps.related_content-2.0.1.tar.gz" } ], "2.0.2": [ { "comment_text": "", "digests": { "md5": "1a36ee5f862ced69dec81c43b0d153f3", "sha256": "26468b9259da0961c45915196ca739fbf4c2d37fc937db5b5aec2e7e9827b896" }, "downloads": -1, "filename": "armstrong.apps.related_content-2.0.2.tar.gz", "has_sig": false, "md5_digest": "1a36ee5f862ced69dec81c43b0d153f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10313, "upload_time": "2013-02-01T21:58:16", "url": "https://files.pythonhosted.org/packages/a1/ee/07ffebf36c99f759690f88bf5dd713a3bdfbdbebb0382f5778d0bf8a5bc5/armstrong.apps.related_content-2.0.2.tar.gz" } ], "2.0.3": [ { "comment_text": "", "digests": { "md5": "11cb538e4ad114119004ce855c9926ae", "sha256": "5fcf93c82894b3177d1f8028276671da16440fbbe6b8b0bdc552980564b34050" }, "downloads": -1, "filename": "armstrong.apps.related_content-2.0.3.tar.gz", "has_sig": false, "md5_digest": "11cb538e4ad114119004ce855c9926ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10309, "upload_time": "2013-02-20T22:43:20", "url": "https://files.pythonhosted.org/packages/e6/98/5a0882e04c702a7b25f9ba35dd9bcbd691e21752a093fcbb7075dd34f2e1/armstrong.apps.related_content-2.0.3.tar.gz" } ], "2.0.4": [ { "comment_text": "", "digests": { "md5": "1df1aa9be680c52ab90fd4fb96136682", "sha256": "b659cfe855270903095c4784e6f09d5f7796b5796e7bc44d1362ad7184bade04" }, "downloads": -1, "filename": "armstrong.apps.related_content-2.0.4.tar.gz", "has_sig": false, "md5_digest": "1df1aa9be680c52ab90fd4fb96136682", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10312, "upload_time": "2013-02-20T22:52:36", "url": "https://files.pythonhosted.org/packages/28/bd/ddc246833d157066ff0b33d48a22942f28c564002a64db3cec0013d6d949/armstrong.apps.related_content-2.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1df1aa9be680c52ab90fd4fb96136682", "sha256": "b659cfe855270903095c4784e6f09d5f7796b5796e7bc44d1362ad7184bade04" }, "downloads": -1, "filename": "armstrong.apps.related_content-2.0.4.tar.gz", "has_sig": false, "md5_digest": "1df1aa9be680c52ab90fd4fb96136682", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10312, "upload_time": "2013-02-20T22:52:36", "url": "https://files.pythonhosted.org/packages/28/bd/ddc246833d157066ff0b33d48a22942f28c564002a64db3cec0013d6d949/armstrong.apps.related_content-2.0.4.tar.gz" } ] }