Use constants to define built-in tags
|Reported by:||russellm||Owned by:||Elvard|
|Component:||Core (System checks)||Version:||1.7-alpha-1|
|Cc:||timmartin, tomas.ehrlich@…||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Via discussion on django-developers:
The code for system checks currently uses freeform strings to register against tags (e.g., @register('compatibility')).
This is potentially prone to error, since you can easily mistype the string, and then the check won't get caught by the tag.
Internally, we should be using constants for built-in tags.
Change History (4)
Changed 11 months ago by Elvard
comment:2 Changed 11 months ago by Elvard
- Cc tomas.ehrlich@… added
- Has patch set
- Owner changed from nobody to Elvard
- Status changed from new to assigned