Commit 202076b3 authored by maxime's avatar maxime

fix action name display in admin

parent 6a700e2c
......@@ -207,8 +207,6 @@ class ActionGroup(Model):
anytwittExplination = models.TextField(blank=True, null=True, verbose_name=u"Tweet Global - Explination")
class Meta:
auto_author = 'author'
serializer_fields = ['@id','anytwittExplination','anytwittTargets','anytwittContent','videourl','videotitle','calltitle','callcontent','callmoreinfo','supported_group','twitter_content','name', 'related_text', 'author','pressreleasetitle','pressreleasecontent','jugementmaj','signuplink','instagram','twitter','facebook', 'objective','actiondate','endactiondate','actioninfolink', 'description', 'theme', 'frequency','linkcollabtext','electedofficialemailsubject', 'electedofficialemailtext', 'representatives', 'members', 'actiongroups', 'loomios', 'conversation', 'address', 'city', 'postcode', 'lat', 'lng', 'events','org_actions']
......@@ -219,6 +217,9 @@ class ActionGroup(Model):
owner_field = 'author'
ordering=['actiondate']
def __str__(self):
return self.name
#Check if end date informed, if not then set it as startdate
@receiver(post_save, sender=ActionGroup)
......@@ -229,7 +230,6 @@ def save_actiongroup(sender, instance, created, **kwargs):
super(ActionGroup, instance).save()
class TextSupporters_Email(Model):
email = models.EmailField(max_length=100, blank=True, null=True, verbose_name=u"Supporter email")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment