I have an django and i am trying to store an object in django session
varaible, and trying to access that in the redirected view, but its showing
`keyerror` as below
def payment(request):
if request.method == 'POST':
form = CardForm(request.POST)
if
I have a model with two fields as below
**models.py**
class Publisher(models.Model):
name = models.CharField(max_length=200)
slug = models.SlugField(max_length=150, unique=True)
def save(self, *args, **kwargs):
if not self.id and not self.slug:
2 matches
Mail list logo