From cd99a02128fe31112f9ddc6fe06837a6a56bf865 Mon Sep 17 00:00:00 2001 From: Bo-Chun Louis Chen <louistw@uab.edu> Date: Fri, 25 May 2018 12:40:15 -0500 Subject: [PATCH] Updated modified part in problem 2 Made it show line number Changed from shell code block to python code block --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c434544..c10ae29 100644 --- a/README.md +++ b/README.md @@ -63,10 +63,14 @@ This is a project implementing the blog post by Mbithe Nzomo. **Solution(for now):** Modify line 189 in `fields.py` from - ```shell - cls, key = identity_key(instance=obj) + ```python + 188 def get_pk_from_identity(obj): + 189 cls, key = identity_key(instance=obj) + 190 return ':'.join(text_type(x) for x in key) ``` to - ```shell - cls, key = identity_key(instance=obj)[:2] + ```python + 188 def get_pk_from_identity(obj): + 189 cls, key = identity_key(instance=obj)[:2] + 190 return ':'.join(text_type(x) for x in key) ``` -- GitLab