24 lines
458 B
Python
24 lines
458 B
Python
import uuid
|
|
|
|
from django.db import models
|
|
from django.contrib import admin
|
|
from django.db.models.functions import Now
|
|
|
|
class VendorAdmin(admin.ModelAdmin):
|
|
list_display = ()
|
|
list_filter = ()
|
|
|
|
class Vendor(models.Model):
|
|
id = models.UUIDField(primary_key=True)
|
|
|
|
reg_date = models.DateTimeField(
|
|
auto_created=True,
|
|
editable=False,
|
|
db_default=Now()
|
|
)
|
|
|
|
active = models.BooleanField(
|
|
db_default=True
|
|
)
|
|
|