Opened 15 years ago
Closed 15 years ago
#12548 closed (duplicate)
Delete FileField content in Admin
Reported by: | Fugazi | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | 1.1 |
Severity: | Keywords: | FileField delete button | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hello,
This is my model:
class Company(models.Model): site = models.ForeignKey(Site, unique=True) presentation = models.TextField(max_length=250) phone_number = models.CharField(max_length=15, verbose_name="numéro de téléphone", blank=True) address = models.TextField(max_length=100, verbose_name="adresse", blank=True) presentation_movie = models.FileField(upload_to='movies', blank=True)
A delete button would be useful beside FileField in Admin (when blank=True) to delete FileField content without delete all class instance.
Regards,
F.
Note:
See TracTickets
for help on using tickets.
This is the same request as #7048.