Trying the example in the REDME, I'm experiencing some problem.
I get duplicated links in the admin dashboard for the admin_views.
this is my admin class
class TestAdmin(AdminViews):
admin_views = (
('Redirect to CNN', 'redirect_to_cnn'),
('Go to revsys.com', 'http://www.revsys.com'),
)
def redirect_to_cnn(self, *args, **kwargs):
return redirect('http://www.cnn.com')
admin.site.register(TestModel, TestAdmin)
This admin is a part of a big project with a lot of customization so it's probably a bad scenario to use as a test but I noticed that everything works good by resetting the output_urls property (self.output_urls = []) at the top of the grt_urls method:
Trying the example in the REDME, I'm experiencing some problem.
I get duplicated links in the admin dashboard for the admin_views.
this is my admin class
This admin is a part of a big project with a lot of customization so it's probably a bad scenario to use as a test but I noticed that everything works good by resetting the output_urls property (self.output_urls = []) at the top of the grt_urls method:
Do you think it's ok for a PR