Generated: Wed 2013-03-13 10:33 CET
Source file: /media/Envs/Envs/filer-gallery/lib/python2.7/site-packages/cms/test_utils/project/pluginapp/plugins/manytomany_rel/models.py
Stats: 0 executed, 5 missed, 5 excluded, 6 ignored
from django.db import modelsfrom cms.models import CMSPluginfrom cms.test_utils.project.pluginapp.models import Sectionclass ArticlePluginModel(CMSPlugin): title = models.CharField(max_length=50) sections = models.ManyToManyField(Section) def __unicode__(self): return self.title def copy_relations(self, oldinstance): self.sections = oldinstance.sections.all()