Hello,

I see others use this like at following link without adding a
AddManipulator why do I get this error?

By the way, I did rebuild the db (sqlite3) after adding
unique_together

http://svn.zyons.python-hosting.com/trunk/zilbo/common/counter/models.py

===== ERROR =====
AttributeError at /admin/data/contact/add/
'AddManipulator' object has no attribute 'isUniquetype_primary'
Request Method:         GET
Request URL:    http://127.0.0.1:8000/admin/data/contact/add/
Exception Type:         AttributeError
Exception Value:        'AddManipulator' object has no attribute
'isUniquetype_primary'
Exception Location:     /usr/lib/python2.4/site-packages/django/db/models/
fields/__init__.py in get_manipulator_fields, line 240


===== Code ======

class PhoneBook(models.Model):
    contact = models.ForeignKey(Contact, edit_inline=models.TABULAR,
num_in_admin=2)
    type    = models.CharField(_("Type"), choices=PHONE_CHOICES,
maxlength=20)
    phone   = models.CharField(_("Phone Number"), blank=True,
maxlength=12, core=True)
    primary = models.BooleanField(_("Primary"), default=False)

    def __str__(self):
        return ("%s - %s" % (self.type, self.phone))

    class Meta:
        unique_together = (("type", "primary"),)
        ordering = ['-primary']
        verbose_name = _("Phone Number")
        verbose_name_plural = _("Phone Numbers")

    class Admin:
        fields = (
                  (None, {'fields': ('contact',
'type','phone','primary')}),
                 )
        list_display = ('contact', 'type','phone','primary')


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to