Skip to content

Commit

Permalink
Fixed 'IntegrityError' on running 'synchronize_geoobjects_...' tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandr Seleznev committed May 25, 2012
1 parent 844df7a commit c40edef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Expand Up @@ -5,7 +5,7 @@ bin/buildoutChangelog of lizard-area
0.6 (unreleased) 0.6 (unreleased)
---------------- ----------------


- Nothing changed yet. - Fixed 'IntegrityError' on running 'synchronize_geoobjects_...' tasks




0.5 (2012-05-25) 0.5 (2012-05-25)
Expand Down
2 changes: 1 addition & 1 deletion lizard_area/sync_areas.py
Expand Up @@ -91,7 +91,7 @@ def geo_object_group(self, username):
group_name = 'LAYERS' group_name = 'LAYERS'
group_slug = slugify(group_name) group_slug = slugify(group_name)
geo_object_group, created = GeoObjectGroup.objects.get_or_create( geo_object_group, created = GeoObjectGroup.objects.get_or_create(
name=group_name, slug=group_slug, created_by=user_obj) name=group_name, slug=group_slug)
if created: if created:
geo_object_group.source_log = 'LAYERS' geo_object_group.source_log = 'LAYERS'
geo_object_group.save() geo_object_group.save()
Expand Down

0 comments on commit c40edef

Please sign in to comment.