Skip to content

Instantly share code, notes, and snippets.

View nguyenquangsang's full-sized avatar

Sang Nguyen Quang nguyenquangsang

  • Ho Chi Minh, Viet Nam
View GitHub Profile
@rsarai
rsarai / admin.py
Last active June 30, 2022 14:34
How to create a simple confirmation view on Django Admin like the default delete view works
from django import forms
from django.contrib import admin
from django.template.response import TemplateResponse
class RegularCreationAdminForm(forms.ModelForm):
class Meta:
model = ReactivationCoupon
fields = [