Alexander
Alexander
I created for test new django project, then added new app with name **blog** settings.py LANGUAGE_CODE = 'ru' LANGUAGES = [ ('en', 'English'), ('ru', 'Russian'), ] PARLER_LANGUAGES = { None:...
I have articles. Each user must be read only their own articles. -> Articles.objects.filter(user=request.user) ``` class ArticleModelType(DjangoSerializerType): class Meta: filter_fields = { 'name': ['exact'], 'category': ['exact'], 'category__name': ['exact'] } serializer_class...
i have not save images . I want save images for user : View : Save User model : public $photo; public $photo_crop; public $photo_cropped; public function rules() { return...
Alexander:src alexander$ git deploy setup -r "production" /Users/alexander/.rvm/gems/ruby-2.4.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:67:in `initialize': Object#timeout is deprecated, use Timeout.timeout instead. /Users/alexander/.rvm/gems/ruby-2.4.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:78:in `initialize': Object#timeout is deprecated, use Timeout.timeout instead. /Users/alexander/.rvm/gems/ruby-2.4.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/cipher_factory.rb:98: warning: constant OpenSSL::Cipher::Cipher is deprecated /Users/alexander/.rvm/gems/ruby-2.4.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb:118:in...
Question on title
class SectionSerializer(TranslatableModelSerializer): translations = TranslatedFieldsField(shared_model=Section) section_group = SectionGroupSerializer(many=True) class Meta: model = Section fields = ( 'translations', 'min_age', 'image', 'section_group' ) @transaction.atomic def create(self, validated_data): section_group = validated_data.pop('section_group') section =...