From faad6613bfc8a687ef23fa8b286970f2aefb2250 Mon Sep 17 00:00:00 2001 From: SergeoLacruz Date: Fri, 28 Apr 2023 13:26:18 +0200 Subject: [PATCH] format --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5f485a4..a9c7118 100644 --- a/README.md +++ b/README.md @@ -79,15 +79,15 @@ and the supplier must be Mouser. The supplier name is hard coded here. This is n but works so far. It will be changed when the plugin is extended to support several suppliers. The content_template is an html file that defines how the panel content looks. -- ``` def get_custom_panels(self, view, request) ``` +``` def get_custom_panels(self, view, request) ``` Here we define the url that controls the panel. Let's look at the details here: - - ```name='transfer-cart'```: This is the name under which the url is called from the html file. We will +- ```name='transfer-cart'```: This is the name under which the url is called from the html file. We will come to that later when we discuss the template. - - ```self.TransferCart``` is the function that is called. It is defined later in this plugin +- ```self.TransferCart``` is the function that is called. It is defined later in this plugin - - ```transfercart/(?P\d+)/``` The string that looks a bit like white noise defines the url. transfercart +- ```transfercart/(?P\d+)/``` The string that looks a bit like white noise defines the url. transfercart ist the url togehter with the slug. The ? is well known for parameters. In this case we get just one parameter, the orders primary key. \d+ is a regular expression that limits the parameters to a digital number with n digits.