This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

A django abstract model and form for handling extra content in a model.

Let’s say we have a model MyData which can point to different underlying data types:

from django.db import models
from extracontent.models import ExtraContent
from extracontent.forms import ExtraContentForm

class DataModel1(models.Model):
    value = models.TextField()

class DataModel2(models.Model):
    dt = models.DateField()

class MyData(ExtraContent):
    name = models.CharField(max_length = 20)

class MyDataForm(ExtraContentForm):
    class Meta:
        model = MyData

Then we can do this:

>>> from extracontent import content
>>> elem = MyDataForm({'content_type':content('datamodel1'),
... 'value':'this is a test', name:'a data object'}).save()
>>> elem.extra_content()
<DataModel1: DataModel1 object>
>>> elem.extra_content().value
'this is a test'

Running Tests

Once installed:

>>>from extracontent.tests import run
>>>run()

or from within the tests directory:

python runtests.py
Release History

Release History

0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-extracontent-0.1.tar.gz (6.7 kB) Copy SHA256 Checksum SHA256 Source Sep 11, 2010
django-extracontent-0.1.zip (9.8 kB) Copy SHA256 Checksum SHA256 Source Sep 13, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting