Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Create Question Model #5

Open
aswinshenoy opened this issue Jun 22, 2019 · 4 comments · May be fixed by #25
Open

Create Question Model #5

aswinshenoy opened this issue Jun 22, 2019 · 4 comments · May be fixed by #25
Assignees

Comments

@aswinshenoy
Copy link
Contributor

aswinshenoy commented Jun 22, 2019

Specifications for the Model

Name Type Details
question Rich Text Field Question along with any diagram
min_mark Integer Minimum Mark
max_mark Integer Maximum Mark. ( Optional )
difficulty Select (ENUM) Very Easy / Easy / Moderate / Hard / Expert
type Relational (Foreign Key) Question Type (like Objective, Numerical, Theory etc.)
topic Relational(ManyToMany) Question Topics
date Date Date of setting the question
author Relational Contributor of question (to Default User Model)

Admin

  • Searchable
  • List Items -> Question (first 100 chars), Topics, Type, Difficulty, Mark Range, Author
@aswinshenoy aswinshenoy added this to the Implement Question Bank milestone Jun 24, 2019
@nipan09
Copy link
Contributor

nipan09 commented Jul 5, 2019

@aswinshenoy, I am getting a (admin.E108) not a callable attribute type error in admin.py while trying to list_display the given models under Admin section here. Here is my code for admin.py-
class Application(admin.ModelAdmin):
list_display= ('short_description','Topic','Type','min_mark', 'max_mark','difficulty')
admin.site.register(author, Application)
admin.site.register(date)
I know that the above mentioned error means that the admin.py is cannot able to locate my models.
But I do not understand why this is happening as my model is defined in models.py and its imported in admin.py.

@nipan09 nipan09 linked a pull request Jul 5, 2019 that will close this issue
@amreshk005
Copy link
Contributor

@aswinshenoy can I work on this??

@vibhoothi
Copy link

@amreshk005 I have assigned you
please do let us know if you face any issues

amreshk005 added a commit to amreshk005/Qujini that referenced this issue Sep 7, 2019
amreshk005 added a commit to amreshk005/Qujini that referenced this issue Sep 12, 2019
amreshk005 added a commit to amreshk005/Qujini that referenced this issue Sep 12, 2019
Alignment Fixed

Alignment Fixed

Alignment Fixed

Question Model Added
harshithpabbati pushed a commit that referenced this issue Sep 12, 2019
Alignment Fixed

Alignment Fixed

Alignment Fixed

Question Model Added
@TanmaySomaiya
Copy link

Hello can i have few minutes regardind the project,
i followed the steps, i initially did set up of the project through command line can anyone help me for its further working of the project,so i would understand it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants