Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

No project description provided

Project description

An implementation of model-attribute-value for Django, without using generic relations.


  1. Install using pip (soon - use GitHub for now):

    pip install django-mav

    Alternatively, you can install download or clone this repo and call pip install -e ..

  2. Add to INSTALLED_APPS in your


  3. In your models, decorate models that need to store model-attribute-values with @mav.

Example code (foo/

from django.db import models

from mav.decorators import mav

class Foo(models.Model):
    name = models.CharField(max_length=100)

# The @mav decorator will generate a FooAttr class in mav.attrs:

class FooAttr(AbstractModelAttribute):
    # Inherited from AbstractModelAttribute
    attribute = models.ForeignKey(Attribute)
    value = models.TextField(...)
    # Generated
    object = models.ForeignKey(Foo, related_name='attrs')




  • Python 2.6, 2.7, 3.2 or 3.3
  • Django >= 1.4

Contributions and pull requests for other Django and Python versions are welcome.

Bugs and requests

If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.


You can use this under the MIT License. See LICENSE file for details.


Developed and maintained by Zostera.

Original author & Development lead: Dylan Verheul.

Thanks to everybody that has contributed pull requests, ideas, issues, comments and kind words.

Please see AUTHORS.rst for a list of contributors.

Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-mav, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size django-mav-0.1.tar.gz (9.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page