I have moved NEW_MESSAGE_ON_PROJECT
and NEW_MESSAGE_ON_PROPOSAL
to BaseNotification
, the superclass.
class CustomerNotification(BaseNotification):
NEW_PROPOSAL = 1000
# NEW_MESSAGE_ON_PROJECT = 1001
# NEW_MESSAGE_ON_PROPOSAL = 1002
CHOICES = ((NEW_PROPOSAL, "New Prpposal"),
(NEW_MESSAGE_ON_PROJECT, "New Message on Project"),
(NEW_MESSAGE_ON_PROPOSAL,"New Message on Proposal"))
When I set CHOICES, I get
NameError: name 'NEW_MESSAGE_ON_PROJECT' is not defined
I dont get self
context here. So whats the solution?