From 1151714828cf48b6a496ea7261410a028f306223 Mon Sep 17 00:00:00 2001 From: thedevboy Date: Thu, 3 Oct 2019 15:51:32 +0530 Subject: Integrity error due to name variable checked --- .idea/dataSources.xml | 11 +++++++++++ fossee_manim/forms.py | 5 +++++ fossee_manim/models.py | 6 ++++++ 3 files changed, 22 insertions(+) diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml index aaac02c..4ab70d8 100644 --- a/.idea/dataSources.xml +++ b/.idea/dataSources.xml @@ -18,5 +18,16 @@ + + sqlite.xerial + true + true + $PROJECT_DIR$/fossee_anime/settings.py + org.sqlite.JDBC + jdbc:sqlite:$PROJECT_DIR$/db.sqlite3 + + + + \ No newline at end of file diff --git a/fossee_manim/forms.py b/fossee_manim/forms.py index 69f8458..1860bee 100644 --- a/fossee_manim/forms.py +++ b/fossee_manim/forms.py @@ -1,5 +1,7 @@ from django import forms from django.utils import timezone +from taggit.forms import TagWidget + from .models import ( Profile, User, Animation, Comment, AnimationStats @@ -264,6 +266,9 @@ class AnimationProposal(forms.ModelForm): class Meta: model = Animation fields = ['category', 'subcategory', 'title', 'outline', 'tags'] + widgets = { + 'tags': TagWidget(), + } class CommentForm(forms.ModelForm): diff --git a/fossee_manim/models.py b/fossee_manim/models.py index 273ebe6..e49726e 100644 --- a/fossee_manim/models.py +++ b/fossee_manim/models.py @@ -166,6 +166,12 @@ class Category(models.Model): return u"{0}".format(self.name) +# test +class Example(models.Model): + name = models.CharField(max_length=20) + tags = TaggableManager() + + class Animation(models.Model): title = models.CharField(max_length=255) contributor = models.ForeignKey(User, on_delete=models.CASCADE) -- cgit