-
Notifications
You must be signed in to change notification settings - Fork 16
Added Content License drop down to select license of book #1285
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1285 +/- ##
==========================================
+ Coverage 86.57% 86.62% +0.04%
==========================================
Files 490 495 +5
Lines 7777 7819 +42
==========================================
+ Hits 6733 6773 +40
- Misses 1044 1046 +2 |
d940e00
to
13c84d2
Compare
license_name = models.CharField( | ||
max_length=255, blank=True, null=True, editable=False, help_text="Name of the license.") | ||
max_length=255, blank=True, null=True, choices=licenses,default=CC_BY_LICENSE_NAME, help_text="Name of the license.") | ||
license_version = models.CharField( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do the other license fields not need similar choices?
if self.support_statement: | ||
Book.objects.filter(locale=self.locale).update(support_statement=self.support_statement) | ||
|
||
# populate license |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, I see what you are doing - might want to set the other license fields to uneditable then editable=False
from wagtail.tests.utils import WagtailPageTests | ||
from wagtail.core.models import Page | ||
|
||
import snippets.models |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused import?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved with comments
No description provided.