Spaces:
Runtime error
Runtime error
Download authentication/models.py from MrTechie/CroppAndWeedD: direct link, hf CLI and curl.
- Browser
- Download file 474 Bytes
-
https://huggingface.co/spaces/MrTechie/CroppAndWeedD/resolve/main/authentication/models.py
- Command line
-
hf download hf://spaces/MrTechie/CroppAndWeedD/authentication/models.py
-
curl -L -o models.py https://huggingface.co/spaces/MrTechie/CroppAndWeedD/resolve/main/authentication/models.py
474 Bytes
| from django.contrib.auth.models import AbstractUser | |
| from django.db import models | |
| class CustomUser(AbstractUser): | |
| is_admin = models.BooleanField(default=False) # True for admin, False for users | |
| groups = models.ManyToManyField( | |
| "auth.Group", | |
| related_name="customuser_set", | |
| blank=True | |
| ) | |
| user_permissions = models.ManyToManyField( | |
| "auth.Permission", | |
| related_name="customuser_permissions", | |
| blank=True | |
| ) | |