initial commit
This commit is contained in:
0
core/apps/common/__init__.py
Normal file
0
core/apps/common/__init__.py
Normal file
3
core/apps/common/admin.py
Normal file
3
core/apps/common/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
core/apps/common/apps.py
Normal file
6
core/apps/common/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class CommonConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'core.apps.common'
|
||||
0
core/apps/common/migrations/__init__.py
Normal file
0
core/apps/common/migrations/__init__.py
Normal file
11
core/apps/common/models.py
Normal file
11
core/apps/common/models.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import uuid
|
||||
from django.db import models
|
||||
|
||||
|
||||
class BaseModel(models.Model):
|
||||
id = models.UUIDField(primary_key=True, editable=False, unique=True, db_index=True, default=uuid.uuid4)
|
||||
created_at = models.DateField(auto_now_add=True)
|
||||
updated_at = models.DateField(auto_now=True)
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
3
core/apps/common/tests.py
Normal file
3
core/apps/common/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
3
core/apps/common/views.py
Normal file
3
core/apps/common/views.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
Reference in New Issue
Block a user