Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extend plan model #1010

Merged
merged 6 commits into from
Nov 15, 2017
Merged

extend plan model #1010

merged 6 commits into from
Nov 15, 2017

Conversation

xi
Copy link
Contributor

@xi xi commented Nov 15, 2017

This adds many more fields to the plans model. We are not quite sure if these fields will be in the final version. However, we definitely want to add them now so we can get better feedback from the clients.

The only field that has been omitted is "timespan" as the format is very unclear. A human readable version of that information can be included in the description for now.

contact = models.TextField(max_length=255, verbose_name=_('Contact'))
cost = models.PositiveIntegerField(blank=True, null=True,
verbose_name=_('Cost'))
description = RichTextField(verbose_name=_('Description'), blank=True)
Copy link
Contributor

@kleingeist kleingeist Nov 15, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

richtextfields need some additional handlin in the save method:
see https://github.com/liqd/a4-meinberlin/blob/master/meinberlin/apps/ideas/models.py#L44

this ensures forbidden html is removed from the string. i did create issue #1011 and liqd/adhocracy4#213 on that topic

@kleingeist kleingeist merged commit 197408f into master Nov 15, 2017
@kleingeist kleingeist deleted the 2017-11-tb-extend-plan-model branch November 15, 2017 16:20
@xi xi mentioned this pull request Nov 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants