You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by rg...@apache.org on 2015/07/26 06:44:10 UTC
svn commit: r1692685 - /comdev/tools/events_list/views.py
Author: rgardler
Date: Sun Jul 26 04:44:10 2015
New Revision: 1692685
URL: http://svn.apache.org/r1692685
Log:
ensure the hashtags we need are in the database to start with
Modified:
comdev/tools/events_list/views.py
Modified: comdev/tools/events_list/views.py
URL: http://svn.apache.org/viewvc/comdev/tools/events_list/views.py?rev=1692685&r1=1692684&r2=1692685&view=diff
==============================================================================
--- comdev/tools/events_list/views.py (original)
+++ comdev/tools/events_list/views.py Sun Jul 26 04:44:10 2015
@@ -80,12 +80,14 @@ def importMeetups(request):
try:
apache_hashtag = Hashtag.objects.get(hashtag = 'Apache')
except Hashtag.DoesNotExist:
- apache_hashtag._hashtag = 'Apache'
+ apache_hashtag = Hashtag()
+ apache_hashtag.hashtag = 'Apache'
apache_hashtag.save()
try:
meetup_hashtag = Hashtag.objects.get(hashtag = 'Meetup')
except Hashtag.DoesNotExist:
+ meetup_hashtag = Hashtag()
meetup_hashtag.hashtag = 'Meetup'
meetup_hashtag.save()