The proposal administration allows to edit every proposal made in the system.
Basic proposal administration interface since most of the work is done in the website.
List display: | title, author, tags |
---|---|
Search : | none: |
Proposal data models are the ones to store the data inside the DB.
Dummy class for proposal categories. Inherits directly from BaseClass without adding any fields.
Proposal data model. This will store the user proposal in a similar way that Stackoverflow does. Take in mind that this data model is very exhaustive because it covers the administrator and the user.
Automatically filled fields: | |
---|---|
Space, Author, Pub_date, mod_date. | |
User filled fields: | |
Title, Description, Tags, Latitude, Longitude. | |
Admin fields (manual): | |
Code, Closed, Close_reason, Anon_allowed, Refurbished, Budget. | |
Admin fields (auto): | |
Closed_by | |
Extra permissions: | |
proposal_view |
CLOSE_REASONS for :class:Proposal data model is hardcoded with four values, which will fit most of the requirements.
Proposal forms.
ProposalForm is a basic form autogenerated form for Proposal model.
Proposal module views.
List all proposals stored whithin a space. Inherits from django ListView generic view.
Return type: | Object list |
---|---|
Context : | proposal |
Detail view of a proposal. Inherits from django DetailView generic view.
Return type: | object |
---|---|
Context : | proposal |
Delete a proposal.
Return type: | Confirmation |
---|---|
Context : | get_place |
Create a new proposal.
Parameters : | space_name |
---|---|
Return type: | HTML Form |
Context : | form, get_place |
The proposal can be edited by space and global admins, but also by their creator.
Return type: | HTML Form |
---|---|
Context : | get_place |
Parameters : | space_name, prop_id |