Opened 4 years ago

Closed 4 years ago

#13323 closed (duplicate)

Load app by full name, not only label

Reported by: chtito Owned by: nobody
Component: Uncategorized Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


It might be desirable to load apps not only by label, but also by full name. For instance, one could allow to type: reset django.contrib.admin. Currently this leads to an error.

Is it possible to have two apps with the same "labels", i.e., two apps with the same end names, like core.admin and management.admin?

More generally it would make sense to only mention apps by full path, i.e., django.contrib.admin instead of admin...

In the mean time, here is a patch to allow the management commands to work with the full path.

Attachments (2)

applabel.diff (589 bytes) - added by chtito 4 years ago.
same_app_label_test.diff (3.3 KB) - added by chtito 4 years ago.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by chtito

comment:1 Changed 4 years ago by mattmcc

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

You're probably looking for #3591.

Changed 4 years ago by chtito

comment:2 Changed 4 years ago by russellm

  • Resolution set to duplicate
  • Status changed from new to closed

No, it isn't possible to have two apps with the same name (at least, not without causing some interesting problems). Fixing this is the subject of ticket #3591.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.