Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.db import models
- # Create your models here.
- class List(models.Model):
- id = models.AutoField(primary_key=True)
- name = models.CharField(max_length=250)
- class Domain(models.Model):
- id = models.AutoField(primary_key=True)
- domain_name = models.CharField(max_length=50)
- class Journal(models.Model):
- id = models.AutoField(primary_key=True)
- title = models.CharField(max_length=250)
- abbreviation = models.CharField(max_length=50)
- impact_factor = models.IntegerField()
- ministerial_points = models.IntegerField()
- domain = models.ManyToManyField(Domain)
- def __str__(self):
- return self.title
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement