Project

Profile

Help

Task #3025

natural key fields are defined in two places

Added by dkliban@redhat.com over 2 years ago. Updated 23 days ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 26

Description

All models inheriting from Content define a 'unique together' set of fields. Content model also has a natural_key_fields tuple. As a result we have uniqueness defined in two place. To keep things DRY we should only define the uniqueness as part of the class Meta. Example of how this can work is already implemented in pulp_example[0].

[0] https://github.com/dkliban/pulp_example/blob/master/pulp_example/app/models.py#L89


Checklist

Associated revisions

Revision b90034a0 View on GitHub
Added by daviddavis over 2 years ago

Removing natural key fields attribute

refs #3025 https://pulp.plan.io/issues/3025

History

#1 Updated by dkliban@redhat.com over 2 years ago

  • Sprint Candidate changed from No to Yes
  • Tags Pulp 3 added

#2 Updated by mhrivnak over 2 years ago

  • Tracker changed from Issue to Task
  • Sprint/Milestone set to 45
  • % Done set to 0
  • Groomed changed from No to Yes

#3 Updated by daviddavis over 2 years ago

  • Assignee set to daviddavis

#4 Updated by daviddavis over 2 years ago

  • Status changed from NEW to ASSIGNED

#6 Updated by daviddavis over 2 years ago

  • Status changed from POST to MODIFIED

#7 Updated by bmbouter about 2 years ago

  • Sprint set to Sprint 26

#8 Updated by bmbouter about 2 years ago

  • Sprint/Milestone deleted (45)

#9 Updated by daviddavis about 1 year ago

  • Sprint/Milestone set to 3.0.0

#10 Updated by bmbouter about 1 year ago

  • Tags deleted (Pulp 3)

#11 Updated by bmbouter 6 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

#12 Updated by snwrraj3544@gmail.com 23 days ago

The main topic of discussion is about HAVE AN INDIVIDUAL MOBILE APP DEVELOPED. Just have a look and we hope you would be able to get what it is all about. He will share http://www.dieappentwickler.ch/app-entwicklung/individuelle-apps/ to us soon. I cannot say anything else about it for now.

Please register to edit this issue

Also available in: Atom PDF