Skip to content

Commit

Permalink
Changed URLField to CharField in GeoJSON and GeoRSS in base synchroni…
Browse files Browse the repository at this point in the history
…zers

(related to #178)
The default django implementation of URLField is too restrictive and doesn't follow the URL parsing standard, therefore we switch back to CharField.
  • Loading branch information
nemesifier committed Oct 9, 2014
1 parent 49604d4 commit 49c295a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion nodeshot/interop/sync/synchronizers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,9 @@ class GenericGisSynchronizer(HttpRetrieverMixin, BaseSynchronizer):
SCHEMA = [
{
'name': 'url',
'class': 'URLField',
'class': 'CharField',
'kwargs': {
'max_length': 128,
'help_text': _('URL containing geographical data')
}
},
Expand Down
5 changes: 3 additions & 2 deletions nodeshot/interop/sync/synchronizers/georss.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ class GeoRss(XMLParserMixin, GenericGisSynchronizer):
SCHEMA = [
{
'name': 'url',
'class': 'URLField',
'class': 'CharField',
'kwargs': {
'help_text': _('URL containing geographical data')
'help_text': _('URL containing geographical data'),
'max_length': 128,
}
},
{
Expand Down

0 comments on commit 49c295a

Please sign in to comment.