Created
January 11, 2017 19:18
-
-
Save pkafei/bb9026a0d318281c3150f422101a3f7c to your computer and use it in GitHub Desktop.
looking for https
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
def clean_content(self): | |
data = self.cleaned_data['content'] | |
atlantic_site = "http://thealtantic.com" | |
if "http" and not atlantic_site in data: | |
raise forms.ValidationError("Please make sure you have only https links") | |
return data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment