Skip to content

Instantly share code, notes, and snippets.

@ilyes-d
Last active June 2, 2022 14:47
Show Gist options
  • Save ilyes-d/5d262269369377a481d74ee2447de9b0 to your computer and use it in GitHub Desktop.
Save ilyes-d/5d262269369377a481d74ee2447de9b0 to your computer and use it in GitHub Desktop.
simple researcher model
from django.db import models
# simple researcher model
class Researcher(models.Model):
first_name = models.CharField(max_length=150, default='')
last_name = models.CharField(max_length=150, default='')
email = models.EmailField(_('email adress'), unique=True)
citations = models.IntegerField(default=0, blank=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment