Opened 18 years ago
Closed 16 years ago
#4081 closed (fixed)
Allow blank and null content fields for flatpages
Reported by: | Tai Lee | Owned by: | nobody |
---|---|---|---|
Component: | Contrib apps | Version: | dev |
Severity: | Keywords: | flatpages blank null content dbchange | |
Cc: | real.human@… | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
some flatpages not not need any actual content pulled from the database if they are using a custom template (depending on the design of the page). allowing blank/null content fields would avoid having to put irrelevent content into the database just to circumvent the validation.
Attachments (2)
Change History (11)
comment:1 by , 18 years ago
Cc: | added |
---|
comment:2 by , 18 years ago
Summary: | allow blank and null content fields for flatpages → Allow blank and null content fields for flatpages |
---|---|
Triage Stage: | Unreviewed → Design decision needed |
comment:3 by , 17 years ago
follow-up: 5 comment:4 by , 17 years ago
direct_to_template would required urls.py to be changed and the server restarted each time a new page is added. Flatpages allows staff admin users to create and delete pages without changing urls.py or restarting the server. Where's the harm in allowing blank content? How is that even backwards incompatible? As long as null=False stays, no existing sites should break by adding blank=True...?
comment:5 by , 17 years ago
This ticket has been open since 7 months. Who can make design decisions such as these? Is there anything I could do to help in such a case?
comment:6 by , 17 years ago
Keywords: | dbchange added |
---|---|
Triage Stage: | Design decision needed → Accepted |
comment:7 by , 17 years ago
Has patch: | set |
---|
I have tested it with content set to blank and seems to work as expected.
by , 17 years ago
Attachment: | blank-flatpages-with-documentation.diff added |
---|
Added note about new functionality in the documentation; also swapped out chicagocrime link for everyblock link
comment:8 by , 17 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Marking ready for checkin per jkocherhans.
comment:9 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This would be backwards-incompatible, and if all you want is a custom template at a given URL the
direct_to_template
generic view is probably a better option, so I'd be -1 on this.