Erhalten von "Die folgenden Inhaltstypen sind veraltet und müssen gelöscht werden", wenn Sie versuchen, eine Migration durchzuführen. Was bedeutet das und wie kann ich es lösen?

Dies ist meine models.py

class Notification(models.Model):
    user = models.ForeignKey(User)
    createdAt = models.DateTimeField(auto_now_add=True, blank=True)
    read = models.BooleanField(default=False, blank=True)

    class Meta:
        abstract = True

class RegularNotification(Notification):
    message = models.CharField(max_length=150)
    link = models.CharField(max_length=100)

class FNotification(Notification):
    # same as Notification
    pass

Wann mache ichpython manage.py makemigrations, so steht es:

Migrations for 'CApp':
  0019_auto_20151202_2228.py:
    - Create model RegularNotification
    - Create model FNotification
    - Remove field user from notification
    - Add field f_request to userextended
    - Delete model Notification

Zunächst ist es komisch, dass es heißtRemove field user from notification weiluser ist noch in meinemNotiication model (also, wenn jemand herausfinden kann, warum es sagt, dass es "Entfernen des Feldbenutzers von der Benachrichtigung" sagt, wäre das großartig!), aber trotzdem, wenn ich weitermache und versuche,python manage.py migrate Ich erhalte diese Nachricht:

Applying CMApp.0019_auto_20151202_2228... OK
The following content types are stale and need to be deleted:

    CApp | notification

Any objects related to these content types by a foreign key will also
be deleted. Are you sure you want to delete these content types?
If you're unsure, answer 'no'.

    Type 'yes' to continue, or 'no' to cancel: no

Ich tippteno. Aber was genau bedeutet das, warum erhalte ich diese Nachricht und wie kann ich sie so gestalten, dass ich diese Nachricht nicht benötige?

Antworten auf die Frage(2)

Ihre Antwort auf die Frage