1

User Image Django Models March 21, 2015, 4:29 p.m.

Django base model:

    def __unicode__(self):
        return '%s' % self.title

    class Meta:
        verbose_name_plural = u"Günlükler"
        verbose_name = u"Günlük"
        ordering = ["-posted"]

 

Django admin save override :

    def save_model(self, request, obj, form, change):
        # custom stuff here
        obj.save()

 


1