Skip to content

Commit

Permalink
squashed commits, rolled back to 0013, and deleted later migration files
Browse files Browse the repository at this point in the history
: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
  • Loading branch information
benpinhassi authored and AzaniaBG committed Nov 16, 2023
1 parent c34dcfc commit ad7e59f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 6 additions & 1 deletion app/core/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,12 @@ class StackElementTypeSerializer(serializers.ModelSerializer):
class Meta:
model = StackElementType
fields = (
"uuid",
"name",
"description",
)
read_only_fields = ("uuid",)
read_only_fields = (
"uuid",
"created_at",
"updated_at",
)
3 changes: 0 additions & 3 deletions app/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,5 @@ class StackElementType(AbstractBaseModel):

# PK of this model is the ForeignKey for stack_element

class Meta:
verbose_name_plural = "Stack Element Types"

def __str__(self):
return f"{self.name}"

0 comments on commit ad7e59f

Please sign in to comment.