✨ Feat: [#56] contenttype 추가했다가 주석처리
This commit is contained in:
@@ -4,6 +4,11 @@ from common.models.baseModels import BaseModel
|
||||
from common.models.choiceModels import CertificateCodeUseType, InviteCodeUseType
|
||||
from common.utils.codeManger import set_expire
|
||||
|
||||
# from django.contrib.contenttypes.fields import GenericForeignKey
|
||||
# from django.contrib.contenttypes.models import ContentType
|
||||
|
||||
# from projects.models import Project
|
||||
|
||||
|
||||
class CertificationCode(BaseModel):
|
||||
use_type = models.CharField(choices=CertificateCodeUseType.choices, max_length=5)
|
||||
@@ -17,3 +22,4 @@ class InviteCode(BaseModel):
|
||||
code = models.CharField(max_length=10)
|
||||
expire_at = models.DateTimeField(default=set_expire) # 일주일은 10080분
|
||||
identifier = models.CharField(max_length=40)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user