Comment 1 for bug 1458831

Revision history for this message
Morten Brekkevold (mbrekkevold) wrote : Re: [Bug 1458831] [NEW] MultipleObjectsReturned: get() returned more than one NetboxType

> nav.models.manage.MultipleObjectsReturned: get() returned more than one NetboxType -- it returned 2! Lookup parameters were {'pk': 98}

That looks pretty f-ed up.

This is a lookup into the "type" database table, using a primary key.
Primary keys must be unique. The table cannot hold two records with the
same primary key unless something has gone seriously wrong with your
database.

What do you get if you connect to the database using psql and issue this
SQL statement:

  SELECT * FROM type WHERE typeid=98;