{ "info": { "author": "Mikko Hellsing", "author_email": "mikko@aino.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: ISC License (ISCL)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4" ], "description": "django-exmodel\n==============\nThe ex-model lets you extend models in apps by adding mixins to them.\nThe mixins can override fields and methods of the original model.\n\nExample::\n\n # file: staff.models\n from django.db import models\n from exmodel import Model, extend_model\n\n\n class Person(Model):\n name = models.CharField(max_lenth=10)\n\n def __unicode__(self):\n return self.name\n\n class Meta:\n app_label = 'staff'\n verbose_name = 'Person name'\n\n\n class PersonMixin(object):\n name = models.CharField(max_lenth=500)\n alias = models.CharField(max_lenth=500)\n\n def __unicode__(self):\n return u'%s (%s)' % (self.name, self.alias)\n\n class Meta:\n verbose_name = 'Person name and alias'\n\n\n extend_model('staff.Person', PersonMixin)", "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/sorl/django-exmodel", "keywords": null, "license": "ICS", "maintainer": null, "maintainer_email": null, "name": "django-exmodel", "package_url": "https://pypi.org/project/django-exmodel/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-exmodel/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/sorl/django-exmodel" }, "release_url": "https://pypi.org/project/django-exmodel/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "Makes your Django models extendable.", "version": "0.0.2" }, "last_serial": 4528500, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "38050ebbdc87aad918c5144b2841c36c", "sha256": "e165f51f54b9d1e16dd778cef466f1f02fbbc858b164a24ebc60373e07752259" }, "downloads": -1, "filename": "django-exmodel-0.0.2.tar.gz", "has_sig": false, "md5_digest": "38050ebbdc87aad918c5144b2841c36c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8024, "upload_time": "2015-03-29T11:28:48", "url": "https://files.pythonhosted.org/packages/1e/6c/48705a6cff7f72c2855e99151500b41cc0df6457704ae34158c7e1ccb954/django-exmodel-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "38050ebbdc87aad918c5144b2841c36c", "sha256": "e165f51f54b9d1e16dd778cef466f1f02fbbc858b164a24ebc60373e07752259" }, "downloads": -1, "filename": "django-exmodel-0.0.2.tar.gz", "has_sig": false, "md5_digest": "38050ebbdc87aad918c5144b2841c36c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8024, "upload_time": "2015-03-29T11:28:48", "url": "https://files.pythonhosted.org/packages/1e/6c/48705a6cff7f72c2855e99151500b41cc0df6457704ae34158c7e1ccb954/django-exmodel-0.0.2.tar.gz" } ] }