Add functionality to Django FlatPages without changing the original Django App
问题 I would like to add a field to the Django FlatPage database model, but I do not really know how to extend this without editing the original application. What I want to do is to add the following field to the model: from django.db import models from django.contrib.flatpages.models import FlatPage as FlatPageOld class FlatPage(FlatPageOld): order = models.PositiveIntegerField(unique=True) How do I get to add this to the FlatPage model? Thanks in advance 回答1: Your approach is fine - you just don