티스토리 뷰
728x90
class MyModel(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
https://stackoverflow.com/questions/3429878/automatic-creation-date-for-django-model-form-objects
Automatic creation date for Django model form objects?
What's the best way to set a creation date for an object automatically, and also a field that will record when the object was last updated? models.py: created_at = models.DateTimeField(False, True,
stackoverflow.com
728x90
'공부' 카테고리의 다른 글
| [Django] remove prefix app name for table (0) | 2020.07.09 |
|---|---|
| [PyCharm] PYTHONPATH= (0) | 2020.07.09 |
| [Sh] "" == true ? -> if [ -z "$VAR" ]; (0) | 2020.07.09 |
| [Jenkins] executors take up a lot of memory (0) | 2020.07.09 |
| [Sh] if (0) | 2020.07.04 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 김달
- 테슬라 리퍼럴 코드 혜택
- 팔로워 수 세기
- 개리마커스
- 어떻게 능력을 보여줄 것인가?
- 할인
- 테슬라 리퍼럴 코드
- 연애학개론
- 책그림
- wlw
- 테슬라 레퍼럴 코드 확인
- 모델 Y 레퍼럴
- 레퍼럴
- Kluge
- COUNT
- 테슬라
- 테슬라 레퍼럴
- 메디파크 내과 전문의 의학박사 김영수
- 테슬라 크레딧 사용
- 테슬라 추천
- 테슬라 레퍼럴 적용 확인
- 클루지
- follower
- 모델y
- Bot
- 인스타그램
- 테슬라 리퍼럴 코드 생성
- 유투브
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
글 보관함