Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Kurek committed Dec 30, 2016
1 parent c31dc7f commit 878a49b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ralph/lib/custom_fields/tests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ class SomeModel(WithCustomFieldsMixin, models.Model):

def get_absolute_url(self):
return reverse(
'cf_admin:{}_{}_change'.format(
'admin:{}_{}_change'.format(
self._meta.app_label, self._meta.model_name
), args=(self.pk,)
)

@classmethod
def get_add_url(self):
return reverse('cf_admin:{}_{}_add'.format(
return reverse('admin:{}_{}_add'.format(
self._meta.app_label, self._meta.model_name
))
4 changes: 2 additions & 2 deletions src/ralph/lib/custom_fields/tests/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from . import admin, api

cf_tests_urls, cf_tests_app_name, cf_tests_namespace = admin.site.urls

import ipdb; ipdb.set_trace()
urlpatterns = [
url(r'^cf_tests_admin/', include((cf_tests_urls, 'ralph', cf_tests_namespace))),
url(r'^cf_tests_admin/', include((cf_tests_urls, 'ralph', 'admin'))),
url(r'^cf_test_api/', include(api.urlpatterns))
]

0 comments on commit 878a49b

Please sign in to comment.