1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Updated tests to stop leaking models in shared AdminSite.

This would break upcoming changes and AdminSite assumptions about
having an app_config for each application that has registered
models.
This commit is contained in:
Riccardo Magliocchetti
2015-03-30 18:33:26 +02:00
committed by Tim Graham
parent 97bb48d9ba
commit a429a502ea
11 changed files with 50 additions and 46 deletions

View File

@@ -16,4 +16,5 @@ class City(models.Model):
def __str__(self):
return self.name
admin.site.register(City, admin.OSMGeoAdmin)
site = admin.AdminSite(name='admin_gis')
site.register(City, admin.OSMGeoAdmin)