-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#206 Create Table: stack_element_type (merge conflicts) #220
#206 Create Table: stack_element_type (merge conflicts) #220
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason Github is showing the wrong changes in the migrations directory. I tried the admin site and it works fine.
The verbose_name_plural field is mainly for correcting cases where adding an "s" at the end of the model name doesn't make it plural. It's not really useful here.
The serializers.py class needs some more fields and read_only_fields. Use the other models as examples.
@fyliu ~
|
I just realized I've been looking at the wrong branch. Your PR is actually in the "merge-upstream-..." branch. I'll try everything again. Yes, I think you should remove the Nothing to be done about github's display. It's just a comment. I can see the actual changes just fine when I fetch the code. Yes, add the timestamps to read_only. And also add |
@AzaniaBG I found a major problem with the migrations. The old migration files are being replaced by this PR, which is not good. In the first screenshot below, we're looking at what's in the repo at the The 2nd screenshot below is a view in this PR branch (1). I put a (2) at the same migrations here. I stacked the screenshots to better show the differences and outlined 14-17 in both branches. My point is that the migrations in I realize this is something that came out of a merge conflict. This situation is a compound issue from several things.
I think you should squash the 2 commits from the current issue and combine the migration files, either manually or delete and regenerate a new one. Then switch to |
Update: I'm working on the changes Fang requested. |
:wq Updated CONTRIBUTING.md file Create pull_request_template.md Add pr template from website team to this repo added created_at and u pdated_at" to read_only_fields removed verbose added uuid to Meta fields property rolled back to 0013 and deleted migration files after 0013_technology.py (cherry picked from commit 6bcc55dc9f9aaeb91c6128c8ce0869618d218dc5)
:wq Updated CONTRIBUTING.md file Create pull_request_template.md Add pr template from website team to this repo added created_at and u pdated_at" to read_only_fields removed verbose added uuid to Meta fields property rolled back to 0013 and deleted migration files after 0013_technology.py
2aa990e
to
c8e3204
Compare
@fyliu ~ I re-requested review |
@AzaniaBG I'm reviewing this but I don't see the re-request review. Is there something you need to click or did you already click it? Anyway, I'm only wondering what happened. |
@fyliu I thought I clicked the re-review button. I had to force push the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the changes! I checked that it runs and the API works.
Fixes #206
What changes did you make?
CharField
typeTextField
typeid
field because this is theuuid
(added this under theread_only_fields
for Serializer'sMeta
class definitionextend_schema_view
decorator and doc strings where applicable)main
branchWhy did you make the changes (we will use this info to test)?
Meta
class because I thought it might be helpfulmain
branch had new PRs approved/merged prior to this issue being completed