Skip to content

Commit

Permalink
fix: 修复项目icon默认图片显示问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiaolulu committed Sep 26, 2024
1 parent beed6b2 commit 29b2f00
Show file tree
Hide file tree
Showing 7 changed files with 462 additions and 19 deletions.
32 changes: 15 additions & 17 deletions unit-backend/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion unit-backend/api/models/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Project(Model):
default=ProjectTypeChoices.WEB)
private = CharField(max_length=50, verbose_name=_('Project private'), choices=ProjectOwnerShipChoices,
default=ProjectOwnerShipChoices.PUBLIC)
avatar = ImageField(upload_to=MEDIA_ROOT, default=path.join(MEDIA_ROOT, 'default.png'), null=True, blank=True,
avatar = ImageField(upload_to=MEDIA_ROOT, default='avatar/default.png', null=True, blank=True,
verbose_name=_('Project Avatar'))
desc = TextField(null=True, blank=True, verbose_name=_('Project Desc'))
create_time = DateTimeField(auto_now_add=True, verbose_name=_('Project CreateTime'))
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added unit-backend/api/templates/media/berserk.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 29b2f00

Please sign in to comment.