Re: Possibly a bug in BaseContext

2018-04-17 Thread python2and3developer
There is also something strange here: https://github.com/django/django/blob/master/django/template/context.py#L229 That line "self.update({})" doesnt do nothing. The inherited "update" method from Context class doesnt do nothing extra. The same here: https://github.com/django/django/blob/master

Possibly a bug in BaseContext

2018-04-17 Thread python2and3developer
Maybe this is a bug. It doesnt make sense this line: https://github.com/django/django/blob/master/django/template/context.py#L48 Its creating a ContextDict: ContextDict(self, *dicts, **kwargs) ContextDict inherits directly from dict. A dictionary only allows one argument. Not more