forked from vitorfs/bootcamp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/vitorfs/bootcamp into de…
…velop
- Loading branch information
Showing
12 changed files
with
260 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Generated by Django 3.0.3 on 2020-04-05 12:27 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("news", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="news", | ||
name="meta_description", | ||
field=models.TextField(max_length=255, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="news", | ||
name="meta_image", | ||
field=models.CharField(max_length=255, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="news", | ||
name="meta_title", | ||
field=models.CharField(max_length=255, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="news", | ||
name="meta_type", | ||
field=models.CharField(max_length=255, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="news", | ||
name="meta_url", | ||
field=models.CharField(max_length=2048, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from django import template | ||
from django.template.defaultfilters import stringfilter | ||
from django.utils.safestring import mark_safe | ||
from django.utils.html import urlize as urlize_impl | ||
|
||
register = template.Library() | ||
|
||
|
||
@register.filter(is_safe=True, needs_autoescape=True) | ||
@stringfilter | ||
def urlize_target_blank(value, autoescape=None): | ||
return value.replace("<a", '<a target="_blank"') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.