美好的一天。 我的admin.py中有以下slug字段: prepopulated_fields = {'slug': ('title',)}. 在我的form.py中: class BookForm(forms.ModelForm): class Meta: model ...
確定! 回上一頁