Download testbed/django__django/tests/auth_tests/models/proxy.py from hc99/FEA-Bench: direct link, hf CLI and curl.
- Browser
- Download file 402 Bytes
-
https://huggingface.co/datasets/hc99/FEA-Bench/resolve/main/testbed/django__django/tests/auth_tests/models/proxy.py
- Command line
-
hf download hf://datasets/hc99/FEA-Bench/testbed/django__django/tests/auth_tests/models/proxy.py
-
curl -L -o proxy.py https://huggingface.co/datasets/hc99/FEA-Bench/resolve/main/testbed/django__django/tests/auth_tests/models/proxy.py
402 Bytes
| from django.contrib.auth.models import User | |
| from django.db import models | |
| class Concrete(models.Model): | |
| pass | |
| class Proxy(Concrete): | |
| class Meta: | |
| proxy = True | |
| permissions = (("display_proxys", "May display proxys information"),) | |
| class UserProxy(User): | |
| class Meta: | |
| proxy = True | |
| permissions = (("use_different_app_label", "May use a different app label"),) | |