Fixed #23947 -- Django's test suite doesn't pass in reverse order

Fixed inconsistent tests when running Django's test suite with --reverse option.
A less invasive solution would be to have that test restore the original app_label:
```python
original_app_label = ma.opts.app_label
ma.opts.app_label = "anotherapp"
try:
    request.user = self.MockAddUser()
    self.assertFalse(ma.has_module_permission(request))
    request.user = self.MockChangeUser()
    self.assertFalse(ma.has_module_permission(request))
    request.user = self.MockDeleteUser()
    self.assertFalse(ma.has_module_permission(request))
finally:
    ma.opts.app_label = original_app_label
```