base.py 333 B

12345678910111213
  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import models
  4. '''
  5. '''
  6. class Base(models.Model):
  7. name = models.CharField(max_length=35, blank=False)
  8. create_at = models.DateTimeField(auto_now_add=True)
  9. update_at = models.DateTimeField(auto_now=True)
  10. class Meta:
  11. abstract = True