Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyModel(models.Model):
- id = models.AutoField(primary_key=True)
- field1 = models.CharField(max_length=200, unique=True) # Might contain greek letters
- field2 = models.CharField(max_length=200, unique=True)
Add Comment
Please, Sign In to add comment