Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.db import models
- from save_the_change.mixins import SaveTheChange
- class MyBaseModel(SaveTheChange, models.Model):
- class Meta:
- abstract = True
- class MyModel(MyBaseModel):
- title = models.CharField(max_length=100)
- '''
- other fields
- '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement