Project

Profile

Help

Task #4041

closed

Determine impact of blank=True when null=True on all models.

Added by jortel@redhat.com about 6 years ago. Updated about 5 years ago.

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

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Easy Fix
Sprint:
Sprint 47
Quarter:

Description

A recent PR raised the question of: Do the fields with null=True also need blank=True? If so, which types of fields and why. This may be determined by reading docs but will likely need to include some testing. After making the determination, all the models should be updated to be constant.

The PR was for the Publication.publisher (FK). null=True was added but not blank=True. Seemed to work but question was raised about the browsable API.

Actions #1

Updated by daviddavis about 6 years ago

  • Tracker changed from Issue to Task
  • % Done set to 0
  • Groomed changed from No to Yes
  • Sprint set to Sprint 43
Actions #2

Updated by ppicka about 6 years ago

  • Assignee set to ppicka
Actions #3

Updated by rchan about 6 years ago

  • Sprint changed from Sprint 43 to Sprint 44
Actions #4

Updated by ppicka about 6 years ago

As found by reading docs, and some test "blank=True" is for django form (django admin and custom forms) and as we checking by django rest framework and for browsable UI using djangorestframework we do not need to use this at all.

Actions #5

Updated by jortel@redhat.com about 6 years ago

  • Status changed from NEW to ASSIGNED
Actions #6

Updated by rchan about 6 years ago

  • Sprint changed from Sprint 44 to Sprint 45

Added by ppicka about 6 years ago

Revision 12484f90 | View on GitHub

Remove 'blank' argument from models

No need of its usage as all checks are done with django rest framework

https://pulp.plan.io/issues/4041

re #4041

Signed-off-by: Pavel Picka

Added by ppicka about 6 years ago

Revision d9d080ab | View on GitHub

Removal of 'blank' argument from models

No need of its usage as all checks are done with django rest framework

https://pulp.plan.io/issues/4041

re #4041

Signed-off-by: Pavel Picka

Added by ppicka about 6 years ago

Revision d9d080ab | View on GitHub

Removal of 'blank' argument from models

No need of its usage as all checks are done with django rest framework

https://pulp.plan.io/issues/4041

re #4041

Signed-off-by: Pavel Picka

Added by ppicka about 6 years ago

Revision 327e67eb | View on GitHub

Remove blank argument from model

as 'blank=True' is used for validating by django form (include django admin) we do not need to use it as checking by djangorestframewrok

https://pulp.plan.io/issues/4041

re #4041

Signed-off-by: Pavel Picka

Actions #9

Updated by ppicka about 6 years ago

added https://github.com/pulp/pulp_rpm/pull/1220 [pulp_rpm] but need to wait for @daviddavis https://github.com/pulp/pulp_rpm/pull/1223 to fix travis inside pulp_rpm repo

Actions #10

Updated by rchan about 6 years ago

  • Sprint changed from Sprint 45 to Sprint 46
Actions #11

Updated by rchan almost 6 years ago

  • Sprint changed from Sprint 46 to Sprint 47

Added by ppicka almost 6 years ago

Revision 7fb23b85 | View on GitHub

Remove blank argument from model

as 'blank=True' is used for validating by django form (include django admin) we do not need to use it as checking by djangorestframewrok

https://pulp.plan.io/issues/4041

closes #4041

Signed-off-by: Pavel Picka

Actions #12

Updated by ppicka almost 6 years ago

  • Status changed from ASSIGNED to POST
Actions #13

Updated by ppicka almost 6 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #14

Updated by daviddavis over 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #15

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3)
Actions #16

Updated by bmbouter about 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF