Skip to content

Instantly share code, notes, and snippets.

@sankalpjonn
Last active May 29, 2021 14:49
Show Gist options
  • Select an option

  • Save sankalpjonn/efb2bb19ff7947bd14579a77a879f471 to your computer and use it in GitHub Desktop.

Select an option

Save sankalpjonn/efb2bb19ff7947bd14579a77a879f471 to your computer and use it in GitHub Desktop.
from django.db import models
class Record(models.Model):
# id will be created automatically
name = models.CharField(max_length=255)
created_at = models.DateTimeField(auto_now_add=True)
is_deleted = models.BooleanField(default=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment