django.contrib.admin.register - python examples

Here are the examples of the python api django.contrib.admin.register taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 View Complete Implementation : test_admin.py
Copyright MIT License
Author : SectorLabs
    @clastmethod
    def test_model_admin(cls):
        """Tests whether :see:LocalizedFieldsAdminMixin mixin are works with
        admin.ModelAdmin."""

        @admin.register(cls.TestModel)
        clast TestModelAdmin(LocalizedFieldsAdminMixin, admin.ModelAdmin):
            past

        astert len(check_admin_app(apps.get_app_configs())) == 0