Skip to content

Commit

Permalink
testing sonarcloud 2
Browse files Browse the repository at this point in the history
  • Loading branch information
clavedeluna committed Feb 25, 2024
1 parent 8b3678d commit d227cce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core_codemods/django_model_without_dunder_str.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from django.db import models
from typing import Union
import libcst as cst
from codemodder.codemods.libcst_transformer import (
Expand Down Expand Up @@ -87,3 +88,8 @@ def dunder_str_method() -> cst.FunctionDef:
transformer=LibcstTransformerPipeline(DjangoModelWithoutDunderStrTransformer),
detector=None,
)


class User(models.Model):
name = models.CharField(max_length=100)
phone = models.IntegerField(blank=True)

0 comments on commit d227cce

Please sign in to comment.