Skip to content

Commit

Permalink
Fix typo in regulator sync views
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarika committed Feb 25, 2016
1 parent 49b4131 commit aaf41ae
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
6 changes: 4 additions & 2 deletions chul/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,13 @@ def test_save(self):
self.assertEquals(1, CommunityHealthWorker.objects.count())

def test_name(self):
worker = mommy.make(CommunityHealthWorker,
worker = mommy.make(
CommunityHealthWorker,
first_name='Test', last_name='Test')
self.assertEquals('Test Test', worker.name)

worker = mommy.make(CommunityHealthWorker,
worker = mommy.make(
CommunityHealthWorker,
first_name='Test', last_name=None)
self.assertEquals('Test', worker.name)

Expand Down
3 changes: 2 additions & 1 deletion facilities/filters/facility_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ class FacilityServiceRatingFilter(CommonFieldsFilterset):
service = django_filters.AllValuesFilter(
name="facility_service__service", lookup_type='exact')
county = django_filters.AllValuesFilter(
name="facility_service__ward__constituency__county", lookup_type='exact')
name="facility_service__ward__constituency__county",
lookup_type='exact')
constituency = django_filters.AllValuesFilter(
name="facility_service__ward__constituency", lookup_type='exact')
ward = django_filters.AllValuesFilter(
Expand Down
6 changes: 3 additions & 3 deletions facilities/urls/facility_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
name='flattened_categories'),

url(r'^regulator_sync_update/(?P<pk>[^/]+)/$',
views.RegualorSyncUpdateView.as_view(),
views.RegulatorSyncUpdateView.as_view(),
name='regulator_sync_update'),

url(r'^regulator_sync/(?P<pk>[^/]+)/$',
views.RegualorSyncDetailView.as_view(),
views.RegulatorSyncDetailView.as_view(),
name='regulator_sync_detail'),

url(r'^regulator_sync/$',
views.RegualorSyncListView.as_view(),
views.RegulatorSyncListView.as_view(),
name='regulator_syncs_list'),

url(r'^option_group_with_options/$',
Expand Down
6 changes: 3 additions & 3 deletions facilities/views/facility_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ class OptionGroupDetailView(
serializer_class = OptionGroupSerializer


class RegualorSyncListView(generics.ListCreateAPIView):
class RegulatorSyncListView(generics.ListCreateAPIView):
queryset = RegulatorSync.objects.all()
serializer_class = RegulatorSyncSerializer
filter_class = RegulatorSyncFilter
Expand All @@ -715,13 +715,13 @@ class RegualorSyncListView(generics.ListCreateAPIView):
'owner', 'mfl_code')


class RegualorSyncDetailView(
class RegulatorSyncDetailView(
AuditableDetailViewMixin, CustomRetrieveUpdateDestroyView):
queryset = RegulatorSync.objects.all()
serializer_class = RegulatorSyncSerializer


class RegualorSyncUpdateView(generics.GenericAPIView):
class RegulatorSyncUpdateView(generics.GenericAPIView):

"""Updates RegulatorSync object with an MFL code"""
serializer_class = RegulatorSyncSerializer
Expand Down

0 comments on commit aaf41ae

Please sign in to comment.