GenDelete

from codenerix.views import GenDelete


class ModelNameDelete(GenDelete):
    model = ModelName

Description

GenDelete is a generic class used to delete an instance. Is recommended that the name of each class which inherit from GenDelete follow the following pattern: ModelName+Delete.

  • Example:

    If model is User, then, GenDelete declarations should be, class UserDelete(GenDelete):

Attributte

model

Model to be deleted.