mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-10-07 08:31:37 +00:00
feat(agreement): add agreement field to user model and implement agreement upload functionality ✨
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m2s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m2s
This commit is contained in:
@@ -34,6 +34,13 @@ class User(AbstractUser):
|
||||
island = models.ForeignKey(
|
||||
"Island", on_delete=models.SET_NULL, null=True, blank=True, related_name="users"
|
||||
)
|
||||
|
||||
agreement = models.FileField(
|
||||
upload_to="agreements/",
|
||||
blank=True,
|
||||
null=True,
|
||||
help_text="Upload the agreement file signed by the user.",
|
||||
)
|
||||
created_at = models.DateTimeField(default=timezone.now)
|
||||
updated_at = models.DateTimeField(auto_now=True)
|
||||
|
||||
|
Reference in New Issue
Block a user