diff options
author | thedevboy | 2019-10-03 15:51:32 +0530 |
---|---|---|
committer | thedevboy | 2019-10-03 15:51:32 +0530 |
commit | 1151714828cf48b6a496ea7261410a028f306223 (patch) | |
tree | 782ec0df010b560a70be8b003283b3c566dbbb2e | |
parent | dd2f35df5bfd31a5d16f5057eaa45d23492c755c (diff) | |
download | FOSSEE_animations-1151714828cf48b6a496ea7261410a028f306223.tar.gz FOSSEE_animations-1151714828cf48b6a496ea7261410a028f306223.tar.bz2 FOSSEE_animations-1151714828cf48b6a496ea7261410a028f306223.zip |
Integrity error due to name variable checked
-rw-r--r-- | .idea/dataSources.xml | 11 | ||||
-rw-r--r-- | fossee_manim/forms.py | 5 | ||||
-rw-r--r-- | fossee_manim/models.py | 6 |
3 files changed, 22 insertions, 0 deletions
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 @@ </library> </libraries> </data-source> + <data-source source="LOCAL" name="Django default" uuid="ae398c8c-5a45-44f5-9195-355716353d9a"> + <driver-ref>sqlite.xerial</driver-ref> + <synchronize>true</synchronize> + <imported>true</imported> + <remarks>$PROJECT_DIR$/fossee_anime/settings.py</remarks> + <jdbc-driver>org.sqlite.JDBC</jdbc-driver> + <jdbc-url>jdbc:sqlite:$PROJECT_DIR$/db.sqlite3</jdbc-url> + <driver-properties> + <property name="enable_load_extension" value="true" /> + </driver-properties> + </data-source> </component> </project>
\ 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) |