You need to add the Admin class to ContactPerson -rob
On Jul 12, 6:59 am, Manuel Meyer <[EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Hey, > > from other projects, running on the same django instance, I know that > there is a possibility to display a '+' icon located over the > ManyToManyField, that allows u to add a new object to relate to. > So - in my case - you could add a contact person while adding a > project. But the sign doesnt appear. Any idea why? > > Thanks, Manuel > > from django.db import models > from django.utils.translation import gettext_lazy as _ > # Create your models here. > > class ContactPerson(models.Model): > name = models.CharField(_("Full Name"), maxlength=255, core=True) > email = models.EmailField(_("Email"), null =True, blank = True) > phone = models.CharField(_("Phone"), maxlength=30, null =True, > blank = True) > > class Project(models.Model): > verbose_name = models.CharField(_("Full Name"), maxlength=255, > core=True) > short_name = models.SlugField(_("Slug Name"), prepopulate_from= > ("verbose_name",), unique=True, help_text=_("This is a short, > descriptive name of the shirt that will be used in the URL link to > this item")) > text = models.TextField(_("Describing text"), help_text=_("A > short description")) > dateStart = models.DateField(_("Start Date"), null =True, blank > = True) > timeStart = models.TimeField(_("Start Time"), null =True, blank > = True) > contact_person = models.ManyToManyField(ContactPerson, > filter_interface=True) > > class Admin: > pass > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (Darwin) > > iQEVAwUBRpYztDOKNHIOcnYMAQieQQf/eTuVUJyGuAMmSoykj3sWGZQSrzBT44PQ > eRp/zrjwKuoDkXoxxw4EXcisa/Dupdi7VX2WF1iBgjCYkS8RNLXHBV8vIzaWX7kU > THbAgXsxzeKfw99XfMojijoUaMGbjVIkHnZDRr/jbdJ3ftzuWxBGVnJBa5uTee2k > nlhVa6ABVcednZyRGos5LB3vJgSAzGqRfzj0MpFXY6Id2yMuwIDDrVAqLlxqleOA > tz9kVlKqiKg3mwD3arzStx8jPKmoSDKi4gNFzBd0kSVItW8hKYq1BOCmWxh/3oM2 > HpgWTE8jHwSRUrVyIQkTlijyiu2yYxgrtGePDxjKDFD9ZLE59m7wRQ== > =Zuh+ > -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---