Code

Ticket #16572: 16572.patch

File 16572.patch, 434 bytes (added by patrys, 3 years ago)

Proposed patch

  • django/db/models/options.py

     
    436436        """ 
    437437        if not self.parents: 
    438438            return 
     439        if model._meta is self: 
     440            return 
    439441        if model in self.parents: 
    440442            return [model] 
    441443        for parent in self.parents: