Commit f6de2fcd authored by Ross Batacan's avatar Ross Batacan

Created application named announcements. Created models under said...

Created application named announcements. Created models under said application. Kindly add ForeignKey from dashboard application on models.py line10.
parent 9ef9682d
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>
\ No newline at end of file
<component name="libraryTable">
<library name="Django Lib">
<CLASSES>
<root url="file://$PROJECT_DIR$/venv/Lib/site-packages" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Django Lib" level="project" />
</component>
<component name="PyDocumentationSettings">
<option name="format" value="PLAIN" />
<option name="myDocStringFormat" value="Plain" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (midterm_mgabolanimav)" project-jdk-type="Python SDK" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/midterm_mgabolanimav.iml" filepath="$PROJECT_DIR$/.idea/midterm_mgabolanimav.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
...@@ -20,4 +20,4 @@ class Reaction(models.Model): ...@@ -20,4 +20,4 @@ class Reaction(models.Model):
reaction_announcement = models.ForeignKey(Announcement, on_delete=models.CASCADE, null=True) reaction_announcement = models.ForeignKey(Announcement, on_delete=models.CASCADE, null=True)
def __str__(self): def __str__(self):
return self.reaction_name return self.reaction_name
\ No newline at end of file
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