This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.contrib import admin, messages | |
| from django.http import HttpResponseRedirect | |
| from django.shortcuts import render | |
| from my_app.forms import CustomForm | |
| class FakeModel(object): | |
| class _meta: | |
| app_label = 'my_app' # This is the app that the form will exist under |