changed redirect_to_current_compterendu view to use Maraude manager's
get_in_progress(), which is now a method instead of cache property. + better display of admin panel's buttons in sujets detail views
This commit is contained in:
@@ -104,11 +104,7 @@ class Note(models.Model):
|
||||
return super().save(*args, **kwargs)
|
||||
|
||||
def __str__(self):
|
||||
return "<%s: %s>" % (self.child_class, self.sujet)
|
||||
|
||||
@classmethod
|
||||
def __str__(cls):
|
||||
return "<%s>" % cls.__qualname__
|
||||
return str(self.sujet)
|
||||
|
||||
def note_author(self):
|
||||
return None
|
||||
@@ -148,6 +144,8 @@ class Note(models.Model):
|
||||
self._child_class = self._child_instance.__class__
|
||||
return
|
||||
|
||||
|
||||
|
||||
@property
|
||||
def child_class(self):
|
||||
if not hasattr(self, '_child_class'):
|
||||
|
||||
Reference in New Issue
Block a user