Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use default value only for special fields like timestamp, uuid #399

Merged
merged 3 commits into from
Jun 29, 2021
Merged

Use default value only for special fields like timestamp, uuid #399

merged 3 commits into from
Jun 29, 2021

Conversation

yuekui
Copy link
Contributor

@yuekui yuekui commented Jun 28, 2021

For most fields, we should use cloned value rather than default. See model in sample, existing test cases already covered so I just slightly changed the model declaration.

@codecov
Copy link

codecov bot commented Jun 28, 2021

Codecov Report

Merging #399 (1a9ded3) into main (b182248) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #399   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          266       265    -1     
=========================================
- Hits           266       265    -1     
Impacted Files Coverage Δ
model_clone/mixins/clone.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b182248...1a9ded3. Read the comment docs.

model_clone/mixins/clone.py Outdated Show resolved Hide resolved
@yuekui yuekui requested a review from jackton1 June 28, 2021 21:48
@jackton1 jackton1 merged commit c4f1841 into tj-django:main Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants