I got no answer from stack exchange.  Maybe someone here knows:

Django v1.3

I have a CruiseOffer model related to a model called SpecialInterest.
I now realize that I have the same exact thing going on in my
LandOffer model (elsewhere). So I want to get rid of the
cruise.SpecialInterest and replace it with the land.SpecialInterest.

This is my error: Error: One or more models did not validate:
cruise.cruiseoffer: 'special_interest' has an m2m relation with model
SpecialInterest, which has either not been installed or is abstract.

I got the error, so decided maybe I need to drop the CruiseOffer
table, but when I syncdb I still fail.

For the most part I have just test data in my tables so I don't mind
dropping and rebuilding models if I have to.

Help?

from land.models import SpecialInterest
class CruiseOffer(models.Model):
  name = models.CharField(max_length=300) # Field name made lowercase.
  supplier = models.ForeignKey('CruiseSupplier')
  special_interest = models.ManyToManyField('SpecialInterest')

  def __unicode__(self):
    return "%6d %s" % (self.id, self.name,)



-- 
Joel Goldstick

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to