typeerror argument of type 'nonetype' is not iterable flask code example
Example: django if self.pattern.name is not None and ":" in self.pattern.name: TypeError: argument of type 'function' is not iterable
re_path(r'^connect/(?P<operation>.+)/(?P<pk>\d+)/$', views.change_friends, name='change_friends')