cms.test_utils.project.pluginapp.plugins.manytomany_rel.models: 10 total statements, 0.0% covered

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

  1. from django.db import models
  2. from cms.models import CMSPlugin
  3. from cms.test_utils.project.pluginapp.models import Section
  4. class ArticlePluginModel(CMSPlugin):
  5. title = models.CharField(max_length=50)
  6. sections = models.ManyToManyField(Section)
  7. def __unicode__(self):
  8. return self.title
  9. def copy_relations(self, oldinstance):
  10. self.sections = oldinstance.sections.all()