Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
get_start_flask
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ishan Patel
get_start_flask
Commits
cd99a021
Commit
cd99a021
authored
7 years ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Updated modified part in problem 2
Made it show line number Changed from shell code block to python code block
parent
1eb57134
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+8
-4
8 additions, 4 deletions
README.md
with
8 additions
and
4 deletions
README.md
+
8
−
4
View file @
cd99a021
...
...
@@ -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)
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment